We stopped compiling some object files twice some time ago. Since
then, all object files are build with the concatenation of both sets
of options.
The two variables are only used at this point, so it is safe to
combine them.
CFLAGS += -Wmissing-format-attribute
CFLAGS += -Wunused-macros
CFLAGS += -Wbad-function-cast
-
-# cflags used only for building library objects
-LIBCFLAGS += -fPIC
-LIBCFLAGS += -fvisibility=hidden
+CFLAGS += -fPIC
+CFLAGS += -fvisibility=hidden
libname := osl
-include $(deps)
endif
%.o: %.c Makefile errtab.h
- $(CC) $(CPPFLAGS) -c -MMD -MF $(*F).d -MT $@ $(CFLAGS) $(LIBCFLAGS) $<
+ $(CC) $(CPPFLAGS) -c -MMD -MF $(*F).d -MT $@ $(CFLAGS) $<
fsck.o: oslfsck.lsg.h
oslfsck: $(fsck_objects)