Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Timothy Bissell <damaen@...>
Subject: Alpha and CCC
Date: 09 May 2003 23:27:20 -0500
I don't really know how many people have run into this, but I'm putting
what I had to do forward. Hopefully it will help. Specifically, this is
for an EV56 system, using the compaq compiler. 

What I've noticed, is that the configure scripts don't have a catch to
give the correct flags on a linux system running a compiler other than
gcc. Since this system fails all of the checks (is not running solaris
for example), it defaults to not building shared libraries with the
compiler. 

This was a little annoying. So I made an addition to libtool.eclass, it
should be attached to this message.

This is not really getting to the heart of the problem, I haven't had
time to dig that far. If someone has a more elegant solution, I am all
ears. Suffice to say, this is what has worked for me, maybe it will help
someone else.

-- 
Your humble lurker,
Timothy Bissell <damaen@...>
--- libtool.eclass.old	2003-04-08 07:51:07.000000000 -0400
+++ libtool.eclass	2003-05-09 22:45:53.000000000 -0400
@@ -205,6 +205,17 @@
 				ewarn "Not applying libtool-remove-internal-dep.patch..."
 			fi
 		fi
+
+		if [ "${CC}" = "ccc" ]
+		then
+			if eval alpha_shared_patch --test $> ${T}/libtool.foo
+			then
+				einfo "Applying alpha-enable-shared.patch..."
+				eval alpha_shared_patch $>${T}/libtool.foo
+			else
+				ewarn "Not applying alpha-enable-shared.patch..."
+			fi
+		fi
 	done
 
 	if [ -f libtool ]
@@ -233,6 +244,32 @@
 	echo "${dirlist}"
 }
 
+alpha_shared_patch() {
+	local opts=""
+
+	if [ "${1}" = "--test" ]
+	then
+		opts="--force --dry-run"
+	fi
+
+	patch ${opts} -p0 <<-"ENDPATCH"
+--- configure.bak       2003-02-12 08:51:48.000000000 -0500
++++ configure   2003-03-04 22:20:08.000000000 -0500
+@@ -5386,7 +5386,10 @@
+         lt_cv_prog_cc_static='-Bstatic'
+       fi
+       ;;
+-
++    linux-gnu)
++      lt_cv_prog_cc_static='-non_shared'
++      lt_cv_prog_cc_wl='-Wl,'
++      ;;
+     *)
+       lt_cv_prog_cc_can_build_shared=no
+       ;;
+ENDPATCH
+}
+	
 #
 # Various patches we want to apply.
 #

--
gentoo-dev@g.o mailing list
Replies:
Re: Alpha and CCC
-- Troy Dack
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
New global USE flag
Next by thread:
Re: Alpha and CCC
Previous by date:
Re: [gentoo-core] Ebuild license question
Next by date:
Re: [gentoo-user] Why headers? was:Mismatch between gentoo-sources and linux-headers?


Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.