[parsec-users] --hash-style=both and --as-needed are illegal options

Mahmood Naderan nt_mahmood at yahoo.com
Tue May 4 05:44:44 EDT 2010

Indeed I have that:
bash-3.00# cd /usr/ccs/bin/
bash-3.00# ls
admin              gprof.callg.blurb  nm                 sparcv9
ar                 gprof.flat.blurb   nrform             strip
as                 help               prof               symorder
cdc                lari               prs                tsort
comb               ld                 prt                unget
delta              lex                ranlib             unifdef
dis                lorder             regcmp             val
dump               m4                 rmdel              vc
elfdump            make               sact               what
error              mcs                sccs               yacc
get                nceucform          sccsdiff           yaccpar
gprof              ncform             size

Also the binutil variable is set to: 
export BINUTIL_HOME="/usr/ccs"
export BINARY_PREFIX="g"

export LD="${BINUTIL_HOME}/bin/${BINARY_PREFIX}ld"
export AS="${BINUTIL_HOME}/bin/${BINARY_PREFIX}as"
export AR="${BINUTIL_HOME}/bin/${BINARY_PREFIX}ar"

// Naderan *Mahmood;

From: Christian Bienia <cbienia at CS.Princeton.EDU>
To: PARSEC Users <parsec-users at lists.cs.princeton.edu>
Sent: Mon, May 3, 2010 7:34:51 PM
Subject: Re: [parsec-users] --hash-style=both and --as-needed are illegal options

Hi Naderan,
Both flags create more portable binaries, but they might be
specific to GNU ld. You should be able to use them on Solaris if you install
GNU ld.
From:parsec-users-bounces at lists.cs.princeton.edu [mailto:parsec-users-bounces at lists.cs.princeton.edu] On Behalf Of Mahmood Naderan
Sent: Monday, May 03, 2010 7:10 AM
Subject: [parsec-users] --hash-style=both and --as-needed are illegal
It seems that --hash-style=bothand --as-neededare incompatible with open solaris, because when I want to build
"blackscholes" I get an error that they are illegal options for ld. 
However I the comment "# Flags for increased portability of binaries" in the gcc.bldconfsays they are optional
and commenting the PORTABILITY_FLAGS="-static-libgcc
-Wl,--hash-style=both,--as-needed"removes the error. 
Although the package is now built, I want to know if anyone had this issue
// Naderan *Mahmood;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20100504/fc80c2f1/attachment.htm>

More information about the parsec-users mailing list