RejectedSoftware Forums

Sign up

OSX and --no-as-needed

Hi,

Just to signal that the "--no-as-needed" options is unknown in osx with Xcode 5.0.2, so the linking phase is broken right now:

Checking dependencies in '/Users/invernizzi/Tmp/Zappable/dub_tests/TestA/tma'
Checking dependencies in '/Users/invernizzi/Tmp/Zappable/dub_tests/TestA/tma'
Generate target tma (executable /Users/invernizzi/Tmp/Zappable/dub_tests/TestA/tma tma)
Building tma configuration "application", build type debug.
Compiling...
Linking...
ld: unknown option: --no-as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
FAIL .dub/build/application-debug-x86_64-dmd-63FD82036A2F978400F00136EFA2B6D6 tma executable
Error executing command build: Link command failed with exit code 1

Cheers,
Paolo

Re: OSX and --no-as-needed

Am 31.12.2013 12:00, schrieb Paolo Invernizzi:

Hi,

Just to signal that the "--no-as-needed" options is unknown in osx with Xcode 5.0.2, so the linking phase is broken right now:

Checking dependencies in '/Users/invernizzi/Tmp/Zappable/dub_tests/TestA/tma'
Checking dependencies in '/Users/invernizzi/Tmp/Zappable/dub_tests/TestA/tma'
Generate target tma (executable /Users/invernizzi/Tmp/Zappable/dub_tests/TestA/tma tma)
Building tma configuration "application", build type debug.
Compiling...
Linking...
ld: unknown option: --no-as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
FAIL .dub/build/application-debug-x86_64-dmd-63FD82036A2F978400F00136EFA2B6D6 tma executable
Error executing command build: Link command failed with exit code 1

Cheers,
Paolo

Thanks, I've quickly disabled it
3f54ffa,
but this new separate compilation definitely still needs extensive
testing...