From owner-freebsd-alpha Thu Apr 19 7:30:53 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id 22CFC37B424 for ; Thu, 19 Apr 2001 07:30:47 -0700 (PDT) (envelope-from daemon@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 14qFSG-0008MH-03; Thu, 19 Apr 2001 16:30:44 +0200 Received: (from daemon@localhost) by kemoauc.mips.inka.de (8.11.3/8.11.1) id f3JE5pc37777 for freebsd-alpha@freebsd.org; Thu, 19 Apr 2001 16:05:51 +0200 (CEST) (envelope-from daemon) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: Compaq CCC Date: Thu, 19 Apr 2001 14:05:51 +0000 (UTC) Message-ID: <9bmrbv$1465$1@kemoauc.mips.inka.de> References: <002d01c0c82a$fac833e0$6e70258d@vvl10.fh-konstanz.de> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-alpha@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Vahe Khachikyan wrote: > I have a question which can sound a little bit strange. > How are you managing the problems with libtool when compiling with CCC ? I use a patched libtool port. Reviews of this patch appreciated. diff -uNr /usr/ports/devel/libtool/Makefile libtool/Makefile --- /usr/ports/devel/libtool/Makefile Mon Feb 5 14:48:20 2001 +++ libtool/Makefile Wed Mar 21 00:09:59 2001 @@ -7,7 +7,7 @@ PORTNAME= libtool PORTVERSION= 1.3.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= libtool diff -uNr /usr/ports/devel/libtool/files/patch-ac libtool/files/patch-ac --- /usr/ports/devel/libtool/files/patch-ac Mon Sep 25 09:38:14 2000 +++ libtool/files/patch-ac Wed Mar 21 00:07:02 2001 @@ -1,5 +1,5 @@ ---- ltconfig.orig Tue Dec 7 23:50:48 1999 -+++ ltconfig Wed Sep 20 11:11:39 2000 +--- ltconfig.orig Tue Dec 7 22:50:48 1999 ++++ ltconfig Wed Mar 21 00:06:38 2001 @@ -169,7 +169,7 @@ # Constants: PROGRAM=ltconfig @@ -55,7 +55,51 @@ --enable-dlopen) enable_dlopen=yes ;; --enable-win32-dll) enable_win32_dll=yes ;; -@@ -971,11 +985,11 @@ +@@ -591,6 +605,25 @@ + fi + $rm conftest.c + echo "$ac_t$with_gcc" 1>&6 ++ ++ # Check if the compiler is Compaq C ++ if test "$with_gcc" != yes; then ++ with_ccc=no ++ echo $ac_n "checking whether we are using Compaq C... $ac_c" 1>&6 ++ echo "$progname:581: checking whether we are using Compaq C" >&5 ++ ++ $rm conftest.c ++ cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ++ with_ccc=yes ++ fi ++ $rm conftest.c ++ echo "$ac_t$with_ccc" 1>&6 ++ fi + fi + + # Allow CC to be a program name with arguments. +@@ -693,6 +726,17 @@ + pic_flag='-fPIC' + ;; + esac ++elif test "$with_ccc" = yes; then ++ case "$host_os" in ++ osf[345]* | linux-gnu* | freebsd*) ++ # All Compaq C alpha code is PIC. ++ wl='-Wl,' ++ link_static_flag='-non_shared' ++ ;; ++ *) ++ can_build_shared=no ++ ;; ++ esac + else + # PORTME Check for PIC flags for the system compiler. + case "$host_os" in +@@ -971,11 +1015,11 @@ $rm conftest.dat if ln -s X conftest.dat 2>/dev/null; then $rm conftest.dat @@ -69,7 +113,7 @@ echo "$ac_t"yes 1>&6 else echo "$ac_t"no 1>&6 -@@ -1226,8 +1240,8 @@ +@@ -1226,8 +1270,8 @@ *) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then @@ -80,7 +124,7 @@ else ld_shlibs=no fi -@@ -1353,14 +1367,6 @@ +@@ -1353,14 +1397,6 @@ hardcode_shlibpath_var=no ;; @@ -95,7 +139,7 @@ hpux9* | hpux10* | hpux11*) case "$host_os" in hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;; -@@ -1775,7 +1781,7 @@ +@@ -1775,7 +1811,7 @@ version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" @@ -104,7 +148,7 @@ file_magic_cmd= file_magic_test_file= deplibs_check_method='unknown' -@@ -1874,18 +1880,21 @@ +@@ -1874,18 +1910,21 @@ case "$version_type" in freebsd-elf*) deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' @@ -134,7 +178,7 @@ shlibpath_var=LD_LIBRARY_PATH case "$host_os" in freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*) -@@ -2776,6 +2785,15 @@ +@@ -2776,6 +2815,15 @@ # Shell to use when invoking shell scripts. SHELL=$LTSHELL -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message