]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Don't add -DPIC
authorRobert Boehne <rboehne@gnu.org>
Sun, 19 Jan 2003 00:18:06 +0000 (00:18 +0000)
committerRobert Boehne <rboehne@gnu.org>
Sun, 19 Jan 2003 00:18:06 +0000 (00:18 +0000)
for languages other than C and C++.

ChangeLog
libtool.m4

index 92a036bbc41b81adf68946e997f1c6f3ec64418f..242141c8dd4b352e2dd6ee59e27bff80bcf6d2c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-18  Robert Boehne  <rboehne@gnu.org>
+
+       * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Don't add -DPIC
+       for languages other than C and C++.
+
 2003-01-13  Albert Chin-A-Young  <china@thewrittenword.com>
 
        * libtool.m4, ltmain.in: Add support for hppa*64* based on
index 76f836724d364b450a3e8cd32702dd63e0b035cc..9e2c257fc094f2c32eaa24259b6517375c5072e7 100644 (file)
@@ -4758,7 +4758,7 @@ AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
   AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
     _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
-    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[GCJ],[],[ -DPIC])], [],
+    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
     [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
      "" | " "*) ;;
      *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
@@ -4772,7 +4772,7 @@ case "$host_os" in
     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
     ;;
   *)
-    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[GCJ],[],[ -DPIC])"
+    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
     ;;
 esac
 ])