OSDN Git Service

Attempt to document the "enable pic" hackery for OpenBSD.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 9 Nov 2009 22:52:46 +0000 (22:52 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 9 Nov 2009 22:52:46 +0000 (22:52 +0000)
Originally committed as revision 20491 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index eb993d3..a1da72f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1916,6 +1916,10 @@ case $target_os in
         ;;
     openbsd)
         enable malloc_aligned
+        # on OpenBSD 4.5. the compiler does not use PIC unless explicitly using
+        # -fPIC. FFmpeg builds fine without PIC, however the generated executable
+        # will not do anything (simply quits with exit-code 1, no crash, no output).
+        # Thus explicitly enable PIC here.
         enable pic
         SHFLAGS='-shared'
         oss_indev_extralibs="-lossaudio"