Issue 111 in gpick: ld: unknown option: -as-needed

73 views
Skip to first unread message

gp...@googlecode.com

unread,
Dec 19, 2013, 12:42:27 AM12/19/13
to gp...@googlegroups.com
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

gp...@googlecode.com

unread,
Dec 19, 2013, 4:02:33 PM12/19/13
to gp...@googlegroups.com
Updates:
Status: Started
Owner: thezbyg

Comment #1 on issue 111 by thezbyg: ld: unknown option: -as-needed
http://code.google.com/p/gpick/issues/detail?id=111

Darwin platform detection added and a different set of flags is now used.
This should also fix issue 112. Please test the attached patch and report
if it fixes the issue, or needs additional improvements.

Attachments:
darwin_support.patch 1.7 KB
Reply all
Reply to author
Forward
0 new messages