Commit b2e66dab authored by Anton Mitrofanov's avatar Anton Mitrofanov

Export symbols only when building shared library

parent 0e227c47
Pipeline #10823 passed with stages
in 8 minutes and 19 seconds
......@@ -380,7 +380,7 @@ opencl="yes"
vsx="auto"
CFLAGS="$CFLAGS -Wall -I. -I\$(SRCPATH)"
CFLAGSSO="$CFLAGSSO -DX264_API_EXPORTS"
CFLAGSSO="$CFLAGSSO"
CFLAGSCLI="$CFLAGSCLI"
LDFLAGS="$LDFLAGS"
LDFLAGSCLI="$LDFLAGSCLI"
......@@ -1372,6 +1372,10 @@ EOF
${SRCPATH}/version.sh >> x264_config.h
if [ "$shared" = "yes" ]; then
CFLAGSSO="$CFLAGSSO -DX264_API_EXPORTS"
fi
if [ "$cli_libx264" = "system" ] ; then
if [ "$shared" = "yes" ]; then
if [ "$SYS" = "WINDOWS" -o "$SYS" = "CYGWIN" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment