3.115-ldflags.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. diff --git a/c++/Makefile b/c++/Makefile
  2. index aeb4daa..5cab356 100644
  3. --- a/c++/Makefile
  4. +++ b/c++/Makefile
  5. @@ -131,28 +131,28 @@ $(SPARKY_INSTALL)/python/sparky $(SPARKY_INSTALL)/python/lib-tk:
  6. chmod 755 $@
  7. sparky-no-python$(EXE_SUFFIX): main.o $(SPARKY_OBJS)
  8. - $(CXX) -o $@ main.o $(SPARKY_OBJS) $(LDFLAGS) $(LDLIBS)
  9. + $(CXX) $(LDFLAGS) -o $@ main.o $(SPARKY_OBJS) $(LDLIBS)
  10. ucsfdata$(EXE_SUFFIX): ucsfdata.o $(NMR_OBJS)
  11. - $(CXX) -o $@ ucsfdata.o $(NMR_OBJS) $(LDFLAGS) $(SYSLIBS) $(EXTRALIBS)
  12. + $(CXX) $(LDFLAGS) -o $@ ucsfdata.o $(NMR_OBJS) $(SYSLIBS) $(EXTRALIBS)
  13. pipe2ucsf$(EXE_SUFFIX): pipe2ucsf.o $(NMR_OBJS)
  14. - $(CXX) -o $@ pipe2ucsf.o $(NMR_OBJS) $(LDFLAGS) $(SYSLIBS) $(EXTRALIBS)
  15. + $(CXX) $(LDFLAGS) -o $@ pipe2ucsf.o $(NMR_OBJS) $(SYSLIBS) $(EXTRALIBS)
  16. vnmr2ucsf$(EXE_SUFFIX): vnmr2ucsf.o $(NMR_OBJS)
  17. - $(CXX) -o $@ vnmr2ucsf.o $(NMR_OBJS) $(LDFLAGS) $(SYSLIBS) $(EXTRALIBS)
  18. + $(CXX) $(LDFLAGS) -o $@ vnmr2ucsf.o $(NMR_OBJS) $(SYSLIBS) $(EXTRALIBS)
  19. bruk2ucsf$(EXE_SUFFIX): bruk2ucsf.o $(NMR_OBJS)
  20. - $(CXX) -o $@ bruk2ucsf.o $(NMR_OBJS) $(LDFLAGS) $(SYSLIBS) $(EXTRALIBS)
  21. + $(CXX) $(LDFLAGS) -o $@ bruk2ucsf.o $(NMR_OBJS) $(SYSLIBS) $(EXTRALIBS)
  22. peaks2ucsf$(EXE_SUFFIX): peaks2ucsf.o $(NMR_OBJS)
  23. - $(CXX) -o $@ peaks2ucsf.o $(NMR_OBJS) $(LDFLAGS) $(SYSLIBS) $(EXTRALIBS)
  24. + $(CXX) $(LDFLAGS) -o $@ peaks2ucsf.o $(NMR_OBJS) $(SYSLIBS) $(EXTRALIBS)
  25. matrix2ucsf$(EXE_SUFFIX): matrix2ucsf.o $(NMR_OBJS)
  26. - $(CXX) -o $@ matrix2ucsf.o $(NMR_OBJS) $(LDFLAGS) $(SYSLIBS) $(EXTRALIBS)
  27. + $(CXX) $(LDFLAGS) -o $@ matrix2ucsf.o $(NMR_OBJS) $(SYSLIBS) $(EXTRALIBS)
  28. spy.so: python.o $(SPARKY_OBJS)
  29. - $(CXX) $(LDSHARED) -o $@ python.o $(SPARKY_OBJS) $(LDFLAGS) $(LDLIBS)
  30. + $(CXX) $(LDSHARED) $(LDFLAGS) -o $@ python.o $(SPARKY_OBJS) $(LDLIBS)
  31. winsystem-$(PLATFORM).o: winsystem-$(PLATFORM).cc
  32. $(CXX) $(CXXFLAGS) $(TKFLAGS) -c $(SPARKY_SRC)/winsystem-$(PLATFORM).cc
  33. @@ -161,7 +161,7 @@ python.o: python.cc
  34. $(CXX) $(CXXFLAGS) $(PYFLAGS) $(TKFLAGS) -c $(SPARKY_SRC)/python.cc
  35. _tkinter.so: _tkinter.o
  36. - $(CXX) $(LDSHARED) -o $@ _tkinter.o $(LDFLAGS) $(TKLIBS)
  37. + $(CXX) $(LDSHARED) $(LDFLAGS) -o $@ _tkinter.o $(TKLIBS)
  38. _tkinter.o: _tkinter.c
  39. $(CC) $(CFLAGS) $(TKFLAGS) $(PYFLAGS) -c $(SPARKY_SRC)/_tkinter.c
  40. @@ -188,8 +188,8 @@ PYLDFLAGS = -L$(PYTHON_LIB)/config -lpython$(PYTHON_VERSION)
  41. PYIFLAGS = -I$(PYTHON_INC)
  42. debug-sparky: main-debug.o python.o _tkinter.o $(SPARKY_OBJS)
  43. - $(CXX) -o $@ main-debug.o python.o _tkinter.o $(SPARKY_OBJS) \
  44. - $(LDFLAGS) $(PYLDFLAGS) $(LDLIBS)
  45. + $(CXX) $(LDFLAGS) -o $@ main-debug.o python.o _tkinter.o $(SPARKY_OBJS) \
  46. + $(PYLDFLAGS) $(LDLIBS)
  47. main-debug.o: main-debug.cc
  48. $(CXX) $(CXXFLAGS) $(PYIFLAGS) -c $(SPARKY_SRC)/main-debug.cc