Changeset 66262a1b in mainline for uspace/lib/posix/Makefile


Ignore:
Timestamp:
2018-05-02T19:48:42Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
349e04ac, cbc02a77
Parents:
888a2c6
Message:

Don't use custom ldscripts in uspace.

Even with the *-linux-gnu targets, there is practically nothing Linux-specific
in the linker itself. We get a few GNU program headers this way, but those
can be safely ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    r888a2c6 r66262a1b  
    3636
    3737SPECS = gcc.specs
    38 LIBC_LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
    39 LIBC_STARTUP_FILE = $(shell sed -n -e 's/^.*STARTUP(\(.*\)).*$$/\1/p' $(LIBC_LINKER_SCRIPT))
    40 EXPORT_LINKER_SCRIPT = link.ld
     38LIBC_STARTUP_FILE = $(STARTUP_OBJECT)
    4139EXPORT_STARTUP_FILE = crt0.o
    4240
     
    4947        $(LIBRARY).a \
    5048        $(EXPORT_STARTUP_FILE) \
    51         $(EXPORT_LINKER_SCRIPT) \
    5249        $(SPECS)
    5350
     
    5552EXTRA_CLEAN = $(INCLUDE_LIBC)
    5653
    57 EXTRA_OUTPUT = $(SPECS) $(EXPORT_LINKER_SCRIPT) $(EXPORT_STARTUP_FILE)
     54EXTRA_OUTPUT = $(SPECS) $(EXPORT_STARTUP_FILE)
    5855
    5956SOURCES = \
     
    9087
    9188EXPORT_LDFLAGS = \
    92         -L$$(HELENOS_EXPORT_ROOT)/lib \
    93         -T link.ld
     89        -L$$(HELENOS_EXPORT_ROOT)/lib
    9490
    9591EXPORT_LDLIBS = \
     
    111107        echo '$(EXPORT_LDLIBS)' >> $@.new
    112108        mv $@.new $@
    113 
    114 $(EXPORT_LINKER_SCRIPT): $(LIBC_LINKER_SCRIPT)
    115         sed 's/STARTUP(.*)/STARTUP(crt0.o)/' $< > $@
    116109
    117110$(EXPORT_STARTUP_FILE): $(LIBC_STARTUP_FILE)
Note: See TracChangeset for help on using the changeset viewer.