openctm-no-strip.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. diff -urN OpenCTM-1.0.3.old/lib/Makefile.linux OpenCTM-1.0.3/lib/Makefile.linux
  2. --- OpenCTM-1.0.3.old/lib/Makefile.linux 2014-08-20 09:39:00.614744990 +0200
  3. +++ OpenCTM-1.0.3/lib/Makefile.linux 2014-08-20 09:40:09.782667989 +0200
  4. @@ -72,7 +72,7 @@
  5. $(RM) $(DYNAMICLIB) $(SONAME) $(LIBNAME) $(OBJS) $(LZMA_OBJS)
  6. $(DYNAMICLIB): $(OBJS) $(LZMA_OBJS)
  7. - $(CC) $(LDFLAGS) -shared -s -Wl,-soname,$(SONAME) -o $@ $(OBJS) $(LZMA_OBJS) -lm
  8. + $(CC) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS) $(LZMA_OBJS) -lm
  9. ln -s $(DYNAMICLIB) $(SONAME)
  10. ln -s $(DYNAMICLIB) $(LIBNAME)
  11. diff -urN OpenCTM-1.0.3.old/tools/Makefile.linux OpenCTM-1.0.3/tools/Makefile.linux
  12. --- OpenCTM-1.0.3.old/tools/Makefile.linux 2014-08-20 09:39:00.583745025 +0200
  13. +++ OpenCTM-1.0.3/tools/Makefile.linux 2014-08-20 09:40:09.751668023 +0200
  14. @@ -52,15 +52,15 @@
  15. rm -f ctmconv ctmviewer ctmbench $(CTMCONVOBJS) $(CTMVIEWEROBJS) $(CTMBENCHOBJS) bin2c phong_frag.h phong_vert.h
  16. ctmconv: $(CTMCONVOBJS)
  17. - $(CXX) $(LDFLAGS) -s -o $@ -L$(OPENCTMDIR) $(CTMCONVOBJS) -lopenctm -ltinyxml
  18. + $(CXX) $(LDFLAGS) -o $@ -L$(OPENCTMDIR) $(CTMCONVOBJS) -lopenctm -ltinyxml
  19. ctmviewer: $(CTMVIEWEROBJS)
  20. - $(CXX) $(LDFLAGS) -s -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -lopenctm \
  21. + $(CXX) $(LDFLAGS) -o $@ -L$(OPENCTMDIR) $(CTMVIEWEROBJS) -lopenctm \
  22. -ltinyxml -ljpeg -lpnglite -lz -lGL -lglut -lGLU -lGLEW \
  23. -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0
  24. ctmbench: $(CTMBENCHOBJS)
  25. - $(CXX) $(LDFLAGS) -s -o $@ -L$(OPENCTMDIR) $(CTMBENCHOBJS) -lopenctm
  26. + $(CXX) $(LDFLAGS) -o $@ -L$(OPENCTMDIR) $(CTMBENCHOBJS) -lopenctm
  27. %.o: %.cpp
  28. $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<