1
0

010-honor-ldflags.patch 792 B

1234567891011121314151617181920212223
  1. --- a/src/Makefile
  2. +++ b/src/Makefile
  3. @@ -3,9 +3,9 @@ include $(TOPDIR)Rules.mak
  4. WR_CXX := WRAPPER_INCLUDEDIR=-I$(TOPDIR)include $(TOPDIR)bin/g++-uc
  5. -LDFLAGS += -nodefaultlibs -shared -Wl,-soname,$(SHARED_MAJORNAME) $(BUILD_EXTRA_LIBRARIES)
  6. +EXTRA_LDFLAGS += -nodefaultlibs -shared -Wl,-soname,$(SHARED_MAJORNAME) $(BUILD_EXTRA_LIBRARIES)
  7. ifneq ($(DODEBUG),y)
  8. -LDFLAGS += -Wl,-s
  9. +EXTRA_LDFLAGS += -Wl,-s
  10. endif
  11. SRCS = $(wildcard *.cpp)
  12. @@ -60,7 +60,7 @@ $(LIBNAME).a: libgcc_eh libsupc $(EXOBJS
  13. $(RANLIB) $@
  14. $(SHARED_FULLNAME): libgcc_eh libsupc $(EXOBJS)
  15. - $(CC) $(LDFLAGS) -o $@ $(EXOBJS) $(SUPOBJS) $(GCCOBJS) $(LIBS)
  16. + $(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) -o $@ $(EXOBJS) $(SUPOBJS) $(GCCOBJS) $(LIBS)
  17. $(LN) $@ $(SHARED_MAJORNAME)
  18. $(LN) $(SHARED_MAJORNAME) $(LIBNAME).so