2000-04-17 21:18:22 +00:00
|
|
|
# XXX For now always link against the syscalls export file.
|
|
|
|
# This is a hack until the import/export stuff is worked out.
|
|
|
|
+postctor += /lib/syscalls.exp
|
|
|
|
|
2001-08-16 05:39:18 +00:00
|
|
|
ifeq ($(subdir),csu)
|
|
|
|
|
|
|
|
sysdep_routines += aix-syscalls
|
|
|
|
|
|
|
|
#
|
|
|
|
# The foo.c is a workaround for the linker complaining about no input files.
|
|
|
|
$(objpfx)aix-syscalls.o : /lib/syscalls.exp
|
|
|
|
echo "static int a;" > foo.c
|
|
|
|
$(CC) -c foo.c
|
2001-09-08 17:45:32 +00:00
|
|
|
ld -bM:SRE -bpT:0x00000000 -bpD:0x00000000 -bnoentry -bI:/lib/syscalls.exp -bE:/lib/syscalls.exp foo.o -o $@
|
2001-08-16 05:39:18 +00:00
|
|
|
rm foo.c foo.o
|
|
|
|
|
|
|
|
|
2001-09-08 17:45:32 +00:00
|
|
|
endif
|
2001-08-16 05:39:18 +00:00
|
|
|
|
2000-04-17 21:18:22 +00:00
|
|
|
ifeq ($(subdir),misc)
|
2001-06-20 07:10:50 +00:00
|
|
|
sysdep_routines += dl-error dl-support dl-libc dl-open dl-sym \
|
|
|
|
dl-close dl-addr uitrunc
|
|
|
|
|
|
|
|
static-only-routines = gprsave0 gprrest0 gprsave1 gprrest1 fprsave fprrest
|
2000-04-17 21:18:22 +00:00
|
|
|
endif
|
|
|
|
|
2000-12-05 04:18:59 +00:00
|
|
|
ifeq ($(subdir),login)
|
|
|
|
sysdep_routines += setutxent getutxent endutxent getutxid getutxline \
|
|
|
|
pututxline utmpxname
|
|
|
|
|
2001-04-04 01:54:59 +00:00
|
|
|
#sysdep_headers += utmpx.h bits/utmpx.h
|
|
|
|
#sysdep_headers += bits/utmp.h bits/utmpx.h
|
2000-12-05 04:18:59 +00:00
|
|
|
endif
|
|
|
|
|
2000-04-17 21:18:22 +00:00
|
|
|
# Don't compile the ctype glue code, since there is no old non-GNU C library.
|
|
|
|
inhibit-glue = yes
|
|
|
|
|
2000-04-18 17:56:29 +00:00
|
|
|
# XXX Don't know yet why this is needed in the moment.
|
2000-04-17 21:18:22 +00:00
|
|
|
ifeq ($(subdir),timezone)
|
|
|
|
CPPFLAGS-zic.c = -Dunix
|
|
|
|
endif
|