Commit 18de5f37 authored by Martin Storsjö's avatar Martin Storsjö

contrib: postproc: Don't omit adding -DPIC on windows

This fixes the earlier patch from 204d6742 to match what is done
in libav/ffmpeg's configure script even closer - even if we skip
adding -fPIC when building for windows, we still need to pass -DPIC
to pick the right form for assembler source.
parent 26e2d390
diff -urN postproc-orig/configure postproc/configure
--- postproc-orig/configure 2012-08-21 23:27:39.000000000 +0300
+++ postproc/configure 2018-02-25 23:57:21.100768782 +0200
@@ -2418,9 +2418,15 @@
+++ postproc/configure 2018-02-26 10:36:48.956225615 +0200
@@ -2419,8 +2419,14 @@
enable_pic() {
enable pic
- add_cppflags -DPIC
add_cppflags -DPIC
- add_cflags -fPIC
- add_asflags -fPIC
+ case "$target_os" in
+ mingw*|cygwin*|win*)
+ ;;
+ *)
+ add_cppflags -DPIC
+ add_cflags -fPIC
+ add_asflags -fPIC
+ ;;
......
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