]> git.sesse.net Git - ffmpeg/blobdiff - configure
configure: Fix debugging on mingw-w64 with gdb
[ffmpeg] / configure
index e550547d6630b78a68cd789a48d7c3d203022b49..e8c4a7be3e30313c7f1ac56d04e2fe24940ed895 100755 (executable)
--- a/configure
+++ b/configure
@@ -4634,9 +4634,9 @@ case $target_os in
         # however ld then forgets what the entry point should be (oops) so we
         # have to manually (re)set it.
         if enabled x86_32; then
-            add_ldexeflags -Wl,--pic-executable,-e,_mainCRTStartup
+            disabled debug && add_ldexeflags -Wl,--pic-executable,-e,_mainCRTStartup
         elif enabled x86_64; then
-            add_ldexeflags -Wl,--pic-executable,-e,mainCRTStartup
+            disabled debug && add_ldexeflags -Wl,--pic-executable,-e,mainCRTStartup
             check_ldflags -Wl,--high-entropy-va # binutils 2.25
             # Set image base >4GB for extra entropy with HEASLR
             add_ldexeflags -Wl,--image-base,0x140000000