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
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
14 ld -bM
:SRE
-bpT
:0x00000000 -bpD
:0x00000000 -bnoentry
-bI
:/lib
/syscalls.exp
-bE
:/lib
/syscalls.exp foo.o
-o
$@
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
27 ifeq ($(subdir
),login
)
28 sysdep_routines
+= setutxent getutxent endutxent getutxid getutxline \
31 #sysdep_headers += utmpx.h bits/utmpx.h
32 #sysdep_headers += bits/utmp.h bits/utmpx.h
35 # Don't compile the ctype glue code, since there is no old non-GNU C library.
38 # XXX Don't know yet why this is needed in the moment.
39 ifeq ($(subdir
),timezone
)
40 CPPFLAGS-zic.c
= -Dunix