Glib compiling under Solaris
- From: Bryan Scaringe <bscaring slpmbo ed ray com>
- To: gtk-list redhat com, bscaring ed ray com, gtk-bugs gtk org
- Subject: Glib compiling under Solaris
- Date: Tue, 31 Aug 1999 16:17:12 -0400 (EDT)
I'm trying to get glib compiled and happy on my Solaris box at work.
The system (uname -a):
SunOS slpyjw 5.5.1 Generic_103640-22 sun4u sparc SUNW,Ultra-2
This is glib 1.2.4.
"make" failed when trying to do the following:
ar -rv cru .libs/libglib.a x.o y.o z.o etc.....
It would complain bitterly about not finding .libs/libglib.a,
and would create a file called "cru".
After pawing through "libtool" and the man page for "ar",
I managed to get it to work.
I changed (in libtool):
old_archive_cmds="\$AR cru \$oldlib\.....
to
old_archive_cmds="\$AR -cu \$oldlib\.....
It seems the solaris version of "ar" is treating "cru" as a filename,
since "$AR cru" becomes "ar -rv cru" (notice the space).
Putting a "-" in front makes it (ar) realize that they are arguments,
and removing the 'r' from 'cru' keeps "ar" from complaining about
duplicate arguments.
It now builds, and installs fine. Programms seem to link against
it and run just fine.
So... Does this look like it would break things for other systems?
If not, I suggest putting in the change.
As a side note: This system chokes on "ps aux", but accepts "ps -aux",
so it looks like a consistent format.
Bryan Scaringe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]