public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Alpha and CCC
@ 2003-05-10  4:27 Timothy Bissell
  2003-05-11  2:29 ` Troy Dack
  0 siblings, 1 reply; 2+ messages in thread
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	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] Alpha and CCC
  2003-05-10  4:27 [gentoo-dev] Alpha and CCC Timothy Bissell
@ 2003-05-11  2:29 ` Troy Dack
  0 siblings, 0 replies; 2+ messages in thread
From: Troy Dack @ 2003-05-11  2:29 UTC (permalink / raw
  To: gentoo-dev


Timothy Bissell said:
> 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.
>

There is an effort in progress to enable compiler "profiles" (for want of
a better word) that will enable people to choose their compiler much the
same way that gcc-config sets the gcc version.

Check bugs.gentoo.org, there are patches or partial solutions in there
somewhere. (there could also be a masked version of gcc/gcc-config in
portag, check in packages.mask)

I'm sure your contributions would be welcomed by the devs that are
undertaking this.

-- 
Troy Dack					http://linux.tkdack.com
<troy@tkdack.com>				http://webportage.sf.net

Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D90BE3C
Key fingerprint = 1F3D 6C15 16AA 09D5 0C96  92E5 FD89 16F9 4D90 BE3C



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-11  2:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-10  4:27 [gentoo-dev] Alpha and CCC Timothy Bissell
2003-05-11  2:29 ` Troy Dack

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