Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 111 by
ryandesi...@gmail.com: ld: unknown option: -as-needed
http://code.google.com/p/gpick/issues/detail?id=111
What steps will reproduce the problem?
1. scons && make
What is the expected output? What do you see instead?
Expected successful compile but got:
ld warning: option -s is obsolete and being ignored
ld: unknown option: -as-needed
collect2: ld returned 1 exit status
scons: *** [build/source/gpick] Error 1
scons: building terminated because of errors.
What version of the product are you using? On what operating system?
gpick 0.2.5, Mac OS X 10.5.8, Xcode 3.1.4, gcc version 4.0.1 (Apple Inc.
build 5493)
Please provide any additional information below.
My understanding is that first of all the option is misspelled in your
SConscript: it's supposed to be "--as-needed" not "-as-needed". However
that's not understood by the old Mac OS X linker either; I understand this
is a GNU ld option, and Apple's ld is not GNU ld. If you want to use
--as-needed when it's supported, that's fine, but you need to detect
linkers that don't support it and not give the argument to them.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings