1 # MINIX-specific servers/drivers options
4 # LSC: Our minimal c library has no putchar, which is called by the builtin
5 # functions of the compiler, so prevent using them.
7 AFLAGS
+= -D__ASSEMBLY__
10 # LSC Static linking, order matters!
11 # We can't use --start-group/--end-group as they are not supported by our
15 LDADD
:= -nodefaultlibs
${LDADD}
17 # 2. Services system library
21 # 3. Minimal C library, if libc had not yet been added
22 .if
${LDADD
:M-lc
} == ""
25 .
endif # empty(${LDADD:M-lc})
27 .if
${MACHINE_ARCH} == "earm"
29 # LSC: On ARM, when compiling statically, with gcc, lgcc_eh is required
30 .if
${PROG
:U
} != "kernel" && !empty
(CC
:M
*gcc
)
31 # gcc_eh uses abort(), which is provided by minc
32 LDFLAGS
+= ${${ACTIVE_CC} == "gcc":?
-lgcc_eh
:}
33 .
endif # ${PROG:U} != "kernel" && !empty(CC:M*gcc)
35 .
endif # ${MACHINE_ARCH} == "earm"
37 # Get (more) internal minix definitions and declarations.
38 CPPFLAGS
+= -D_MINIX_SYSTEM
=1
40 .
include <bsd.prog.mk
>