Merge commit '80ade7985cd95156e2156f50adc7b86d0e43a07a'
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 27 Jul 2013 07:12:56 +0000 (09:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 27 Jul 2013 07:13:07 +0000 (09:13 +0200)
* commit '80ade7985cd95156e2156f50adc7b86d0e43a07a':
  AIX: add support for shared builds

Merged-by: Michael Niedermayer <michaelni@gmx.at>
configure

index ef90e81..e7853e1 100755 (executable)
--- a/configure
+++ b/configure
@@ -3403,7 +3403,10 @@ enabled spic && enable_weak pic
 # OS specific
 case $target_os in
     aix)
+        SHFLAGS=-shared
         add_cppflags '-I\$(SRC_PATH)/compat/aix'
+        enabled shared && add_ldflags -Wl,-brtl
+        ar_default='ar -Xany'
         ;;
     haiku)
         prefix_default="/boot/common"