Changeset f3fdecc in mainline for uspace/lib/posix/Makefile
- Timestamp:
- 2018-05-03T05:37:08Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2f72560a
- Parents:
- 349e04ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/Makefile
r349e04ac rf3fdecc 36 36 37 37 SPECS = gcc.specs 38 LIBC_STARTUP_FILE = $(STARTUP_OBJECT) 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 39 41 EXPORT_STARTUP_FILE = crt0.o 40 42 … … 47 49 $(LIBRARY).a \ 48 50 $(EXPORT_STARTUP_FILE) \ 51 $(EXPORT_LINKER_SCRIPT) \ 49 52 $(SPECS) 50 53 … … 52 55 EXTRA_CLEAN = $(INCLUDE_LIBC) 53 56 54 EXTRA_OUTPUT = $(SPECS) $(EXPORT_ STARTUP_FILE)57 EXTRA_OUTPUT = $(SPECS) $(EXPORT_LINKER_SCRIPT) $(EXPORT_STARTUP_FILE) 55 58 56 59 SOURCES = \ … … 87 90 88 91 EXPORT_LDFLAGS = \ 89 -L$$(HELENOS_EXPORT_ROOT)/lib 92 -L$$(HELENOS_EXPORT_ROOT)/lib \ 93 -T link.ld 90 94 91 95 EXPORT_LDLIBS = \ … … 107 111 echo '$(EXPORT_LDLIBS)' >> $@.new 108 112 mv $@.new $@ 113 114 $(EXPORT_LINKER_SCRIPT): $(LIBC_LINKER_SCRIPT) 115 sed 's/STARTUP(.*)/STARTUP(crt0.o)/' $< > $@ 109 116 110 117 $(EXPORT_STARTUP_FILE): $(LIBC_STARTUP_FILE)
Note:
See TracChangeset
for help on using the changeset viewer.