"make sharedlib" fails in OSX (ld: unknown option: --soname)
Iñaki Baz Castillo
ibc at aliax.net
Fri Feb 18 14:40:11 MSK 2011
2011/2/18 Iñaki Baz Castillo <ibc at aliax.net>:
> HI Michael, I understand. However I've realized that removing the
> "-soname" option still makes "make sharedlib" to work on Linux. So
> I've replaced this:
>
> sharedlib: $(SOLIBV)
>
> $(SOLIBV): $(SOBJS)
> $(CC) -shared -Wl,--soname,$(SOLIBV) -o $@ $(SOBJS)
>
> with this:
>
> sharedlib: $(SOLIBV)
>
> $(SOLIBV): $(SOBJS)
> $(CC) -shared -Wl -o $@ $(SOBJS)
>
>
> I still have to test it under MacOSX (but I don't have one XD).
It fails under OSX:
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the udns
mailing list