#35443: py25-pynifti, py26-pynifti: ld: unknown option: --no-undefined -----------------------------------------+------------------------- Reporter: ns358@… | Owner: jameskyle@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: py25-pynifti, py26-pynifti | -----------------------------------------+------------------------- Changes (by ryandesign@…): * status: new => closed * cc: ryandesign@… (added) * resolution: => fixed Comment: Ok yes, I confirm that even if we fix setup.py to use "`extra_link_args = ['-Wl,-no-undefined']`" we still get the error: {{{ /usr/bin/clang -isysroot / -L/opt/local/lib -bundle -undefined dynamic_lookup -m64 build/temp.macosx-10.8-x86_64-2.6/build/src.macosx-10.8-x86_64-2.6/nifti/clib_wrap.o -L/opt/local/lib -lniftiio -o build/lib.macosx-10.8-x86_64-2.6/nifti/_clib.so -Wl,-no-undefined -bundle ld: unknown option: -no-undefined }}} I think `ld` is getting confused because we're asking for both "`-undefined dynamic_lookup`" (comes from python's config/Makefile) and "`-no-undefined`" (comes from pynifti's setup.py). I also see "`-bundle`" is specified twice, once from each, which is unnecessary. I think it's safe to remove the duplicate and conflicting options from pynifti's setup.py and just use the options python sets. Done with some other changes in r98768. -- Ticket URL: <https://trac.macports.org/ticket/35443#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS