public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] Alpha and CCC
@ 2003-05-10  4:27 99% Timothy Bissell
  0 siblings, 0 replies; 1+ results
From: Timothy Bissell @ 2003-05-10  4:27 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 890 bytes --]

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@rochester.rr.com>

[-- Attachment #2: AlphaCCC-eclass.patch --]
[-- Type: text/plain, Size: 1140 bytes --]

--- 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.
 #


[-- Attachment #3: Type: text/plain, Size: 37 bytes --]

--
gentoo-dev@gentoo.org mailing list

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2003-05-10  4:27 99% [gentoo-dev] Alpha and CCC Timothy Bissell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox