Changeset f3fdecc in mainline for uspace/lib/posix/Makefile


Ignore:
Timestamp:
2018-05-03T05:37:08Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f72560a
Parents:
349e04ac
Message:

Revert "Don't use custom ldscripts in uspace."

This reverts commit 66262a1bc2d53e61780c5f98a184a3b48b3de53f.

More work is needed on ia64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    r349e04ac rf3fdecc  
    3636
    3737SPECS = gcc.specs
    38 LIBC_STARTUP_FILE = $(STARTUP_OBJECT)
     38LIBC_LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld
     39LIBC_STARTUP_FILE = $(shell sed -n -e 's/^.*STARTUP(\(.*\)).*$$/\1/p' $(LIBC_LINKER_SCRIPT))
     40EXPORT_LINKER_SCRIPT = link.ld
    3941EXPORT_STARTUP_FILE = crt0.o
    4042
     
    4749        $(LIBRARY).a \
    4850        $(EXPORT_STARTUP_FILE) \
     51        $(EXPORT_LINKER_SCRIPT) \
    4952        $(SPECS)
    5053
     
    5255EXTRA_CLEAN = $(INCLUDE_LIBC)
    5356
    54 EXTRA_OUTPUT = $(SPECS) $(EXPORT_STARTUP_FILE)
     57EXTRA_OUTPUT = $(SPECS) $(EXPORT_LINKER_SCRIPT) $(EXPORT_STARTUP_FILE)
    5558
    5659SOURCES = \
     
    8790
    8891EXPORT_LDFLAGS = \
    89         -L$$(HELENOS_EXPORT_ROOT)/lib
     92        -L$$(HELENOS_EXPORT_ROOT)/lib \
     93        -T link.ld
    9094
    9195EXPORT_LDLIBS = \
     
    107111        echo '$(EXPORT_LDLIBS)' >> $@.new
    108112        mv $@.new $@
     113
     114$(EXPORT_LINKER_SCRIPT): $(LIBC_LINKER_SCRIPT)
     115        sed 's/STARTUP(.*)/STARTUP(crt0.o)/' $< > $@
    109116
    110117$(EXPORT_STARTUP_FILE): $(LIBC_STARTUP_FILE)
Note: See TracChangeset for help on using the changeset viewer.