From: Julian Ospald Date: Sun Jul 6 16:27:32 UTC 2014 Subject: respect CFLAGS in linking commands --- cyphertite-2.0.2/exude/GNUmakefile +++ cyphertite-2.0.2/exude/GNUmakefile @@ -65,7 +65,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(LIB.SHARED): $(LIB.SOBJS) - $(CC) $(LDFLAGS.SO) $^ $(LIB.LDFLAGS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS.SO) $(LIB.LDFLAGS) $^ -o $@ $(OBJPREFIX)$(LIB.STATIC): $(LIB.OBJS) $(AR) $(ARFLAGS) $@ $^ --- cyphertite-2.0.2/clog/GNUmakefile +++ cyphertite-2.0.2/clog/GNUmakefile @@ -94,7 +94,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(LIB.SHARED): $(LIB.SOBJS) - $(CC) $(LDFLAGS.SO) $^ $(LIB.LDFLAGS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS.SO) $(LIB.LDFLAGS) $^ -o $@ $(OBJPREFIX)$(LIB.STATIC): $(LIB.OBJS) $(AR) $(ARFLAGS) $@ $^ --- cyphertite-2.0.2/shrink/libshrink/GNUmakefile +++ cyphertite-2.0.2/shrink/libshrink/GNUmakefile @@ -85,7 +85,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(LIB.SHARED): $(LIB.SOBJS) - $(CC) $(LDFLAGS.SO) $(LIB.LDFLAGS) -o $@ $^ $(LIB.LDLIBS) + $(CC) $(CFLAGS) $(LDFLAGS.SO) $(LIB.LDFLAGS) -o $@ $^ $(LIB.LDLIBS) $(OBJPREFIX)$(LIB.STATIC): $(LIB.OBJS) $(AR) $(ARFLAGS) $@ $^ --- cyphertite-2.0.2/assl/GNUmakefile +++ cyphertite-2.0.2/assl/GNUmakefile @@ -80,7 +80,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(LIB.SHARED): $(LIB.SOBJS) - $(CC) $(LDFLAGS.SO) $^ $(LIB.LDFLAGS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS.SO) $(LIB.LDFLAGS) $^ -o $@ $(OBJPREFIX)$(LIB.STATIC): $(LIB.OBJS) $(AR) $(ARFLAGS) $@ $^ --- cyphertite-2.0.2/xmlsd/GNUmakefile +++ cyphertite-2.0.2/xmlsd/GNUmakefile @@ -93,7 +93,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(LIB.SHARED): $(LIB.SOBJS) - $(CC) $(LDFLAGS.SO) $^ $(LIB.LDFLAGS) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS.SO) $(LIB.LDFLAGS) $^ -o $@ $(OBJPREFIX)$(LIB.STATIC): $(LIB.OBJS) $(AR) $(ARFLAGS) $@ $^ --- cyphertite-2.0.2/shrink/shrink/GNUmakefile +++ cyphertite-2.0.2/shrink/shrink/GNUmakefile @@ -62,7 +62,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(BIN.NAME): $(BIN.OBJS) - $(CC) $(BIN.LDFLAGS) -o $@ $^ $(BIN.LDLIBS) + $(CC) $(CFLAGS) $(BIN.LDFLAGS) -o $@ $^ $(BIN.LDLIBS) $(OBJPREFIX)%.o: %.c @echo "Generating $@.depend" --- cyphertite-2.0.2/cyphertite/examples/ct_archive/GNUmakefile +++ cyphertite-2.0.2/cyphertite/examples/ct_archive/GNUmakefile @@ -71,7 +71,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(BIN.NAME): $(BIN.OBJS) - $(CC) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} + $(CC) $(CFLAGS) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} $(OBJPREFIX)%.o: %.c --- cyphertite-2.0.2/cyphertite/examples/ct_delete/GNUmakefile +++ cyphertite-2.0.2/cyphertite/examples/ct_delete/GNUmakefile @@ -71,7 +71,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(BIN.NAME): $(BIN.OBJS) - $(CC) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} + $(CC) $(CFLAGS) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} $(OBJPREFIX)%.o: %.c --- cyphertite-2.0.2/cyphertite/examples/ct_exists/GNUmakefile +++ cyphertite-2.0.2/cyphertite/examples/ct_exists/GNUmakefile @@ -71,7 +71,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(BIN.NAME): $(BIN.OBJS) - $(CC) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} + $(CC) $(CFLAGS) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} $(OBJPREFIX)%.o: %.c --- cyphertite-2.0.2/cyphertite/examples/ct_extract/GNUmakefile +++ cyphertite-2.0.2/cyphertite/examples/ct_extract/GNUmakefile @@ -71,7 +71,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(BIN.NAME): $(BIN.OBJS) - $(CC) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} + $(CC) $(CFLAGS) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} $(OBJPREFIX)%.o: %.c --- cyphertite-2.0.2/cyphertite/examples/ct_list/GNUmakefile +++ cyphertite-2.0.2/cyphertite/examples/ct_list/GNUmakefile @@ -71,7 +71,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(BIN.NAME): $(BIN.OBJS) - $(CC) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} + $(CC) $(CFLAGS) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} $(OBJPREFIX)%.o: %.c --- cyphertite-2.0.2/cyphertite/cyphertite/GNUmakefile +++ cyphertite-2.0.2/cyphertite/cyphertite/GNUmakefile @@ -75,7 +75,7 @@ -$(MKDIR) obj $(OBJPREFIX)$(BIN.NAME): $(BIN.OBJS) - $(CC) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} + $(CC) $(CFLAGS) $(BIN.LDFLAGS) -o $@ $^ ${BIN.LDLIBS} $(OBJPREFIX)%.o: %.c