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 e4a3da6..86759a9 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)