[FFmpeg-devel] --extra-ldexeflags don't take precedence

Roger Pack rogerdpack2 at gmail.com
Thu Nov 1 06:40:19 EET 2018


As a note, configuring with

... --extra-ldexeflags=-Wl,--image-base,0x10000000 ...

results in a link time command of

/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-gcc
-Wl,--nxcompat,--dynamicbase -Wl,--high-entropy-va -Wl,--as-needed
-Wl,--image-base,0x10000000 -Wl,--pic-executable,-e,mainCRTStartup
-Wl,--image-base,0x140000000
-I/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/include
-L/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib/
-L/Users/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/lib
-o /var/folders/52/02ywtc9j2n9145q29g58g5s40000gn/T//ffconf.J0wHA7pr/test.exe
/var/folders/52/02ywtc9j2n9145q29g58g5s40000gn/T//ffconf.J0wHA7pr/test.o
-lrtmfp -lstdc++ -lWs2_32 -liphlpapi -lssl -lcrypto -lstdc++ -lWs2_32
-liphlpapi -lssl -lcrypto -lstdc++ -lWs2_32 -liphlpapi -lssl -lcrypto
-lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 -lpthread -lm -lmingwex


notice how the "0x10000000" part came *before* the default, which is
"-Wl,--image-base,0x140000000" so there is essentially no way to
override this setting from the configure line.

Perhaps this is expected, surprised me at least...

Cheers!
-Roger


More information about the ffmpeg-devel mailing list