This reverts e08c946c6 and 05165c2f7a. The actual intention of
e08c946c6 was to fix shared library builds for arm/win32, which
can also be accomplished in other ways.
Disabling pic on those platforms broke inline assembly on cygwin/64
(since some inline assembly requires knowing whether we are building
as PIC or not), and might also break inline assembly on other
compilers on windows.
As a side-effect, this unfortunately brings back all the warnings
about PIC not having any effect on that platform.
(The alternative would be to try to separate cases where the compiler
has enabled PIC implicitly (and has defined __PIC__) or we have
enabled it manually ourselves and apply the inline assembly
workarounds for both cases, but that would probably complicate things
quite a bit.)
---
configure | 3 ---
1 file changed, 3 deletions(-)
diff --git a/configure b/configure
index 22d4fa9..4952c33 100755
--- a/configure
+++ b/configure
@@ -3084,7 +3084,6 @@ case $target_os in
dlltool="${cross_prefix}dlltool"
ranlib=:
enable dos_paths
- disable pic
;;
win32|win64)
if enabled shared; then
@@ -3109,7 +3108,6 @@ case $target_os in
objformat="win32"
ranlib=:
enable dos_paths
- disable pic
;;
cygwin*)
target_os=cygwin
@@ -3124,7 +3122,6 @@ case $target_os in
SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(FULLNAME).dll.a'
objformat="win32"
enable dos_paths
- disable pic
;;
*-dos|freedos|opendos)
network_extralibs="-lsocket"
--
1.7.9.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel