fix incorrect name and Makefile change from Andrew
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / Makefile
index 5c35856920de9634381ede4bc0f95413cec345ca..d9fc6ce7cdf3ba0d7db17e0db351f4aec4ac696f 100644 (file)
@@ -544,6 +544,7 @@ all:        $(OUTPUT) $(CUTADS) $(BDWRITE) $(LV2UI)
 $(OUTPUT): $(OBJS) $(THEME_DATA) $(DCRAW) $(LIBRARIES)
        $(LINKER) `cat $(OBJDIR)/objs`
        $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(OUTPUT) $(OUTPUT_G))
+       $(if $(findstring -g,$(CFLAGS)),objcopy --add-gnu-debuglink=$(OUTPUT_G) $(OUTPUT))
        $(if $(findstring -ggdb,$(CFLAGS)),,strip $(OUTPUT))
        ln -f -s ../bin/$(WANT_CIN) ci
 
@@ -552,6 +553,7 @@ $(CUTADS):  $(CUTOBJS) $(CUTLIBS) $(LIBRARIES)
        @echo $(CXX) -o $@ $(CUTOBJS)
        @$(CXX) $(CFLAGS) -pthread -o $@ $(CUTOBJS) $(CUTLIBS) $(LIBS)
        $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(CUTADS) $(CUTADS).debuginfo)
+       $(if $(findstring -g,$(CFLAGS)),objcopy --add-gnu-debuglink=$(CUTADS).debuginfo $(CUTADS))
        $(if $(findstring -ggdb,$(CFLAGS)),,strip $(CUTADS))
 
 install-cutads: