chiark / gitweb /
[PATCH] fix up segfaulting binaries with new klibc
[elogind.git] / Makefile
index 99a7618795db172c7496306a8a09c12a51fdea7d..ac60ade52a9b6ca32e28dc44717f67b5f16e332b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -188,7 +188,7 @@ ifeq ($(strip $(USE_KLIBC)),true)
        CRT0 = $(KLIBC_DIR)/crt0.o
        LIBC = $(ARCH_LIB_OBJS) $(LIB_OBJS) $(CRT0)
        CFLAGS += $(WARNINGS) -nostdinc                         \
-               $(OPTFLAGS)                                     \
+               $(OPTFLAGS) $(REQFLAGS)                         \
                -D__KLIBC__ -fno-builtin-printf                 \
                -I$(KLIBC_FIXUPS_DIR)                           \
                -include $(KLIBC_FIXUPS_DIR)/klibc_fixups.h     \
@@ -202,7 +202,6 @@ ifeq ($(strip $(USE_KLIBC)),true)
 
        HEADERS += \
                klibc_fixups/klibc_fixups.h     \
-               klibc_fixups/mntent.h           \
                klibc_fixups/pwd.h
 
        KLIBC_FIXUP_OBJS = \