[PATCH 1/6] Add Makefile support for DSBT ELF.
Bernd Schmidt
bernds at codesourcery.com
Thu Feb 24 23:53:57 UTC 2011
On 02/23/2011 10:56 PM, Bernhard Reutner-Fischer wrote:
>> +ifeq ($(UCLIBC_FORMAT_DSBT_ELF),y)
>> define link.so
>> $(Q)$(RM) $@ $@.$(2) $(dir $@)$(1)
>> @$(disp_ld)
>> $(Q)$(CC) $(LDFLAGS-$(notdir $@)) -Wl,-soname=$(notdir $@).$(2) \
>> $(NOSTDLIB_CFLAGS) -o $(dir $@)$(1) $(START_FILE-$(notdir $@)) \
>> -Wl,--whole-archive $(firstword $^) -Wl,--no-whole-archive \
>> + $(LDFLAGS_DSBTINDEX-$(notdir $@)) \
>> $(LIBS-$(notdir $@)) $(LIBGCC) $(END_FILE-$(notdir $@))
>> $(Q)$(LN) -sf $(1) $@.$(2)
>> $(Q)$(LN) -sf $(1) $@
>> endef
>> +else
>> +define link.so
>> + $(Q)$(INSTALL) -d $(dir $@)
>> + $(Q)$(RM) $@ $@.$(2) $(dir $@)$(1)
>> + @$(disp_ld)
>> + $(Q)$(CC) $(LDFLAGS-$(notdir $@)) -Wl,-soname=$(notdir $@).$(2) \
>> + $(NOSTDLIB_CFLAGS) -o $(dir $@)$(1) $(START_FILE-$(notdir $@)) \
>> + -Wl,--whole-archive $(firstword $^) -Wl,--no-whole-archive \
>> + $(LIBS-$(notdir $@)) $(LIBGCC) $(END_FILE-$(notdir $@))
>> + $(Q)$(LN) -sf $(1) $@.$(2)
>> + $(Q)$(LN) -sf $(1) $@
>> +endef
>> +endif
>
> Is this really necessary, can't you put the flags into
> $(LDFLAGS-$(notdir $@)) ?
Do you mean something like the patch below? I was trying to avoid ifdefs
in every Makefile.in.
Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: makefiles-b.diff
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20110225/ea5febf2/attachment.diff>
More information about the uClibc
mailing list