From owner-freebsd-ports Mon Aug 27 15: 0:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B23C737B406 for ; Mon, 27 Aug 2001 15:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7RM01M72529; Mon, 27 Aug 2001 15:00:01 -0700 (PDT) (envelope-from gnats) Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id DB76C37B403 for ; Mon, 27 Aug 2001 14:59:42 -0700 (PDT) (envelope-from naddy@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 15bUQ1-0007Kn-00; Mon, 27 Aug 2001 23:59:41 +0200 Received: (from naddy@localhost) by kemoauc.mips.inka.de (8.11.6/8.11.1) id f7RLatk29707; Mon, 27 Aug 2001 23:36:55 +0200 (CEST) (envelope-from naddy) Message-Id: <200108272136.f7RLatk29707@kemoauc.mips.inka.de> Date: Mon, 27 Aug 2001 23:36:55 +0200 (CEST) From: Christian Weisgerber Reply-To: Christian Weisgerber To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/30148: devel/libtool: shared libs with compaq-cc Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30148 >Category: ports >Synopsis: devel/libtool: shared libs with compaq-cc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 27 15:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 5.0-CURRENT alpha >Organization: >Environment: System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Aug 23 22:39:44 CEST 2001 naddy@kemoauc.mips.inka.de:/home/obj/usr/src/sys/KEMOAUC alpha >Description: libtool-1.3.4_2 doesn't know about ccc (lang/compaq-cc) and consequently refuses to build shared libraries with it. The patch below adds support for ccc to our libtool port. >How-To-Repeat: >Fix: 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 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message