Project

General

Profile

Bug #700 » 0001-Use-LDFLAGS-when-linking.patch

Use LDFLAGS for both plugin and sudoku_generator - SPAM, 07/06/2015 05:24 PM

View differences:

Makefile
### Targets:
libvdr-$(PLUGIN).so: $(OBJS)
$(CXX) $(CXXFLAGS) -shared $^ -o $@
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $^ -o $@
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
.PHONY: tests
tools/Makefile
all: $(PROGRAM)
$(PROGRAM): $(PROGRAM).cpp $(SRCS) $(SRCS:%.cpp=%.h)
$(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) -o $@ $(PROGRAM).cpp $(SRCS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(DEFINES) $(INCLUDES) -o $@ $(PROGRAM).cpp $(SRCS)
install: all
$(INSTALL_DIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
(2-2/2)