Update.
[glibc.git] / sysdeps / unix / sysv / aix / Makefile
blob2da53110917583f88f533af344e2f92b7980fdf0
1 # XXX For now always link against the syscalls export file.
2 # This is a hack until the import/export stuff is worked out.
3 +postctor += /lib/syscalls.exp
5 ifeq ($(subdir),csu)
7 sysdep_routines += aix-syscalls
10 # The foo.c is a workaround for the linker complaining about no input files.
11 $(objpfx)aix-syscalls.o : /lib/syscalls.exp
12 echo "static int a;" > foo.c
13 $(CC) -c foo.c
14 ld -bM:SRE -bpT:0x00000000 -bpD:0x00000000 -bnoentry -bI:/lib/syscalls.exp -bE:/lib/syscalls.exp foo.o -o $@
15 rm foo.c foo.o
18 endif
20 ifeq ($(subdir),misc)
21 sysdep_routines += dl-error dl-support dl-libc dl-open dl-sym \
22 dl-close dl-addr uitrunc
24 static-only-routines = gprsave0 gprrest0 gprsave1 gprrest1 fprsave fprrest
25 endif
27 ifeq ($(subdir),login)
28 sysdep_routines += setutxent getutxent endutxent getutxid getutxline \
29 pututxline utmpxname
31 #sysdep_headers += utmpx.h bits/utmpx.h
32 #sysdep_headers += bits/utmp.h bits/utmpx.h
33 endif
35 # Don't compile the ctype glue code, since there is no old non-GNU C library.
36 inhibit-glue = yes
38 # XXX Don't know yet why this is needed in the moment.
39 ifeq ($(subdir),timezone)
40 CPPFLAGS-zic.c = -Dunix
41 endif