.
[glibc-ports.git] / sysdeps / unix / sysv / sco3.2.4 / Makefile
bloba199ba9003c016e5427b213c7ef4ce173ce6db29
1 ifeq (posix,$(subdir))
2 sysdep_routines := $(sysdep_routines) pgrpsys sco_getgrp
3 endif
5 ifeq (csu,$(subdir))
7 # SCO uses crt1.o, and expects that single initializer file to also start
8 # the .init and .fini sections as crti.o normally does.
9 start-installed-name = crt1.o
10 start-installed-name-rule = yes
12 # Link together start.o and crti.o into the expected crt1.o.
13 # Now crt1.o as initializer and crtn.o as finalizer will work.
14 $(objpfx)crt1.o: $(objpfx)start.o $(objpfx)crti.o
15 $(CC) -nostdlib -nostartfiles -Wl,-r -o $@ $^
17 endif