]> granicus.if.org Git - libvpx/commitdiff
configure: enable PIC for shared libs by default
authorJohn Koleszar <jkoleszar@google.com>
Tue, 21 Sep 2010 14:34:51 +0000 (10:34 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 24 Sep 2010 12:40:27 +0000 (08:40 -0400)
Shared libs generally require PIC, so this saves a little typing at
configure time.

Change-Id: I357d70cc68434f3283fee78873052d2b7d77c777

build/make/configure.sh

index e4a3da6b6b2d2445b2f977f4f18501e5d05d091d..86759a97f69c3bf338fd505002b552130541d3c0 100755 (executable)
@@ -562,6 +562,9 @@ process_common_toolchain() {
     mips*)        enable mips;;
     esac
 
+    # PIC is probably what we want when building shared libs
+    enabled shared && soft_enable pic
+
     # Handle darwin variants
     case ${toolchain} in
         *-darwin8-gcc)