summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/aix/Makefile
blob: 2da53110917583f88f533af344e2f92b7980fdf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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

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
	ld -bM:SRE -bpT:0x00000000 -bpD:0x00000000 -bnoentry -bI:/lib/syscalls.exp -bE:/lib/syscalls.exp foo.o -o $@
	rm foo.c foo.o


endif

ifeq ($(subdir),misc)
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
endif

ifeq ($(subdir),login)
sysdep_routines += setutxent getutxent endutxent getutxid getutxline \
                   pututxline utmpxname

#sysdep_headers += utmpx.h bits/utmpx.h
#sysdep_headers += bits/utmp.h bits/utmpx.h
endif

# Don't compile the ctype glue code, since there is no old non-GNU C library.
inhibit-glue = yes

# XXX Don't know yet why this is needed in the moment.
ifeq ($(subdir),timezone)
CPPFLAGS-zic.c = -Dunix
endif