Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    r970c4d8 rfdf97f6  
    4242FIXED_C_LIBRARY = libc4posix.a
    4343
    44 REDEFS_HIDE_LIBC = redefs-hide-libc-symbols.list
    45 REDEFS_SHOW_LIBPOSIX = redefs-show-posix-symbols.list
     44REDEFS_HIDE_LIBC = redefs-hide-libc.xargs
     45REDEFS_SHOW_LIBPOSIX = redefs-show-posix.xargs
    4646COLLISIONS_LIST = collisions.list
    4747
     
    6161        source/locale.c \
    6262        source/math.c \
    63         source/pthread/condvar.c \
    64         source/pthread/keys.c \
    65         source/pthread/mutex.c \
    66         source/pthread/threads.c \
    6763        source/pwd.c \
    6864        source/signal.c \
     
    8581
    8682$(FIXED_C_LIBRARY): $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    87         $(OBJCOPY) --redefine-syms=$(REDEFS_HIDE_LIBC) $(LIBC_FILE) $@
    88         $(OBJCOPY) --redefine-syms=$(REDEFS_SHOW_LIBPOSIX) $@ $@
     83        ./tools/transform-symbols.sh \
     84                $(OBJCOPY) $(AR) echo \
     85                $(LIBC_FILE) $@ \
     86                $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    8987
    9088$(FIXED_POSIX_LIBRARY): $(LIBRARY).a $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    91         $(OBJCOPY) --redefine-syms=$(REDEFS_HIDE_LIBC) $(LIBRARY).a $@
    92         $(OBJCOPY) --redefine-syms=$(REDEFS_SHOW_LIBPOSIX) $@ $@
     89        ./tools/transform-symbols.sh \
     90                $(OBJCOPY) $(AR) echo \
     91                $(LIBRARY).a $@ \
     92                $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    9393
    9494$(REDEFS_HIDE_LIBC): $(COLLISIONS_LIST)
    95         sed 's/.*/& __helenos_libc_&/' <$(COLLISIONS_LIST) >$@
    96 
     95        ./tools/create-redefines.sh "" "__helenos_libc_" <$(COLLISIONS_LIST) >$@
     96       
    9797$(REDEFS_SHOW_LIBPOSIX): $(COLLISIONS_LIST)
    98         sed 's/.*/posix_& &/' <$(COLLISIONS_LIST) >$@
     98        ./tools/create-redefines.sh "posix_" "" <$(COLLISIONS_LIST) >$@
    9999
    100100$(COLLISIONS_LIST):
    101         find ./include/posix -name '*.h' -exec \
    102                 sed -n -e '/^#/d' -e 's/__POSIX_DEF__/\n&/gp' {} \; | \
    103                 sed -n -e 's/__POSIX_DEF__(\([^)]*\)).*/\1/p' | \
    104                 sort -u >$@
     101        ./tools/get-collision-list.sh ./include/posix >$@
Note: See TracChangeset for help on using the changeset viewer.