From: Andre Noll Date: Sun, 17 May 2020 19:47:17 +0000 (+0200) Subject: build: Combine CFLAGS and LIBCFLAGS. X-Git-Tag: v0.2.0~8^2~3 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=e6e38b6ed3cab6617d4a497545815568f2e99086 build: Combine CFLAGS and LIBCFLAGS. 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. --- diff --git a/Makefile b/Makefile index 86cdc8f..92e66c1 100644 --- a/Makefile +++ b/Makefile @@ -42,10 +42,8 @@ CFLAGS += -Werror-implicit-function-declaration 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 @@ -78,7 +76,7 @@ ifeq ($(findstring clean, $(MAKECMDGOALS)),) -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)