Changeset ba3841e2 in mainline for uspace/lib/posix/Makefile
- Timestamp:
- 2018-04-15T18:28:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 363fe7e
- Parents:
- c1f44ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/Makefile
rc1f44ca rba3841e2 35 35 INCLUDE_LIBC = ./include/libc 36 36 37 LIBC_FILE = $(LIBC_PREFIX)/libc.a38 39 FIXED_C_LIBRARY = libc4posix.a40 MERGED_C_LIBRARY = libc.a41 MERGE_LIBRARIES = \42 $(FIXED_C_LIBRARY) \43 $(LIBRARY).a \44 $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a \45 $(LIBSOFTINT_PREFIX)/libsoftint.a46 47 37 SPECS = gcc.specs 48 38 LIBC_LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld … … 54 44 ../math/libmath.a \ 55 45 ../clui/libclui.a \ 56 $(MERGED_C_LIBRARY) \ 46 $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a \ 47 $(LIBSOFTINT_PREFIX)/libsoftint.a \ 48 $(LIBC_PREFIX)/libc.a \ 49 $(LIBRARY).a \ 57 50 $(EXPORT_STARTUP_FILE) \ 58 51 $(EXPORT_LINKER_SCRIPT) \ 59 52 $(SPECS) 60 53 61 REDEFS_HIDE_LIBC = redefs-hide-libc-symbols.list 54 PRE_DEPEND = $(INCLUDE_LIBC) 55 EXTRA_CLEAN = $(INCLUDE_LIBC) 62 56 63 PRE_DEPEND = $(INCLUDE_LIBC) 64 EXTRA_CLEAN = \ 65 $(INCLUDE_LIBC) \ 66 $(REDEFS_HIDE_LIBC) \ 67 libc.o 68 69 EXTRA_OUTPUT = $(FIXED_C_LIBRARY) $(FIXED_POSIX_LIBRARY) $(MERGED_C_LIBRARY) $(SPECS) $(EXPORT_LINKER_SCRIPT) $(EXPORT_STARTUP_FILE) 57 EXTRA_OUTPUT = $(SPECS) $(EXPORT_LINKER_SCRIPT) $(EXPORT_STARTUP_FILE) 70 58 71 59 SOURCES = \ … … 106 94 107 95 EXPORT_LDLIBS = \ 108 - lmath -lc96 --start-group -lposix -lmath -lc -lsoftfloat -lsoftint --end-group 109 97 110 98 EXPORT_CFLAGS = \ … … 179 167 rm -rf $(EXPORT_DIR)/include 180 168 mv $(EXPORT_DIR)/include.new $(EXPORT_DIR)/include 181 182 $(FIXED_C_LIBRARY): $(LIBC_FILE) $(REDEFS_HIDE_LIBC)183 $(OBJCOPY) --redefine-syms=$(REDEFS_HIDE_LIBC) $(LIBC_FILE) $@184 185 $(MERGED_C_LIBRARY): $(MERGE_LIBRARIES)186 $(LD) --fatal-warnings -r -o libc.o --whole-archive $(MERGE_LIBRARIES) --no-whole-archive187 $(AR) rc $@ libc.o188 189 $(REDEFS_HIDE_LIBC): $(SOURCES)190 sed -n -e 's/_HIDE_LIBC_SYMBOL(\(.*\));/\1 __helenos_libc_\1/p' $(SOURCES) >$@
Note:
See TracChangeset
for help on using the changeset viewer.