1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Author: Helmut Grohne <helmut@subdivi.de>
Last-Update: 2025-08-31
Bug-Debian: https://bugs.debian.org/1112688
Description: Do not use variable CC for the C++ compiler
--- skesa-2.4.0.orig/Makefile
+++ skesa-2.4.0/Makefile
@@ -39,7 +39,11 @@
NGS_INCL := -I $(NGS_PATH)/include
NGS_LIB := -L $(NGS_PATH)/lib64
-CC = c++ -std=c++11 -fdiagnostics-color=never
+ifeq ($(origin CXX),default)
+CXX = c++
+endif
+CFLAGS += -std=c++11 -fdiagnostics-color=never
+LDLAGS += -std=c++11 -fdiagnostics-color=never
CFLAGS += -Wall -Wno-format-y2k -pthread -fPIC -O3 -finline-functions -fstrict-aliasing \
-fomit-frame-pointer $(BOOST_INCL) $(NGS_INCL) $(VDB_INCL)
@@ -54,7 +58,7 @@
-lrt -ldl -lm -lpthread -lz
%.o: %.cpp
- $(CC) -c -o $@ $< $(CFLAGS)
+ $(CXX) -c -o $@ $< $(CFLAGS)
binaries=skesa gfa_connector kmercounter
@@ -69,15 +73,15 @@
skesa.o: common_util.hpp concurrenthash.hpp readsgetter.hpp ngs_includes.hpp counter.hpp graphdigger.hpp assembler.hpp KmerInit.hpp DBGraph.hpp Integer.hpp LargeInt.hpp LargeInt1.hpp LargeInt2.hpp Model.hpp config.hpp glb_align.hpp Makefile
skesa: skesa.o glb_align.o
- $(CC) -o $@ $^ $(LIBS) $(LDFLAGS)
+ $(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
gfa_connector.o: gfa.hpp glb_align.hpp common_util.hpp concurrenthash.hpp readsgetter.hpp ngs_includes.hpp graphdigger.hpp KmerInit.hpp DBGraph.hpp Integer.hpp LargeInt.hpp LargeInt1.hpp LargeInt2.hpp Model.hpp config.hpp Makefile
gfa_connector: gfa_connector.o glb_align.o
- $(CC) -o $@ $^ $(LIBS)
+ $(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
kmercounter.o: common_util.hpp concurrenthash.hpp readsgetter.hpp ngs_includes.hpp counter.hpp graphdigger.hpp assembler.hpp KmerInit.hpp DBGraph.hpp Integer.hpp LargeInt.hpp LargeInt1.hpp LargeInt2.hpp Model.hpp config.hpp glb_align.hpp Makefile
kmercounter: kmercounter.o glb_align.o
- $(CC) -o $@ $^ $(LIBS)
+ $(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
$(NGS_DIR)/ngs.done:
|