Request 221 was acted upon.
_________________________________________________________________________
URL: https://rt.openpkg.org/id/221
Ticket: [OpenPKG #221]
Subject: gv build fails on Solaris
Requestors: [EMAIL PROTECTED]
Queue: openpkg
Owner: Nobody
Status: new
Transaction: Ticket created by [EMAIL PROTECTED]
Time: Fri Aug 01 18:34:22 2003
_________________________________________________________________________
Sun's "xmkmf" tool assumes that the proprietary Sun linker is being used, so it
generates Makefile's with many proprietary switches (in particular, it liberally uses
the "-Xc" option, which GNU binutils don't understand).
Unfortunately, the Sun "xmkmf" also ignores environment variables like "HasGcc" that
other platforms use to tune link flags.
There are a couple of ways around this that come to mind:
(1) manually editing the generated Makefiles to get rid of the offending linker
switches. e.g.,
...
# generate Makefiles and build gv
xmkmf -a
case "%{l_target}" in
*solaris* )
for mkfile in `find . -name Makefile` ; do
%{l_shtool} subst \
-e "s;-Xc;;g" -e "s;-xF;;g" -e "s-xarch=v8;;g" \
$mkfile
done
;;
* ) true ;;
esac
%{l_make}
...
(2) rather than calling "xmkmf", manually perform the same work as "xmkmf",
setting appropriate environment variables to use GNU binutils. The "xpm"
package does this.
----
Matt Hoosier
CIS Unix/Accounts Administrator
Kansas State University