spack/var/spack/repos/builtin/packages/sambamba/Makefile.patch
George Hartzell 070ada3aef [WIP]: Sambamba new package (#5304)
* First draft package for sambamba

Depends on the ldc package (#5279) that alalazo's working on.

It requires a patch to the Makefile because one of ldc's library
functions mentions dlopen.  I *think* that ldc should be handling
this.  See the discusssion in #5279.

It also requires a "static" ldc.  Again, see #5279.

Finally, it needs "undeaD" as a resource, but I'm guessing at the
appropriate release.  See
https://github.com/lomereiter/sambamba/issues/312.

* alalazo renamed the shared_libs variant, keep up...
2017-09-20 18:23:49 -06:00

12 lines
560 B
Diff

--- sambamba/Makefile.orig 2017-09-07 14:31:28.563896131 -0700
+++ sambamba/Makefile 2017-09-07 14:31:35.337912872 -0700
@@ -20,7 +20,7 @@
else
-LINK_CMD=gcc -Wl,--gc-sections -o build/sambamba build/sambamba.o $(STATIC_LIB_SUBCMD) -l:libphobos2-ldc.a -l:libdruntime-ldc.a -lrt -lpthread -lm
+LINK_CMD=gcc -Wl,--gc-sections -o build/sambamba build/sambamba.o $(STATIC_LIB_SUBCMD) -l:libphobos2-ldc.a -l:libdruntime-ldc.a -lrt -lpthread -lm -ldl
DMD_STATIC_LIBS=-L-Lhtslib -L-l:libhts.a -L-l:libphobos2.a -L-Llz4/lib -L-l:liblz4.a
define split-debug