void-packages/srcpkgs/xxHash/patches/fix-dynamic-lib.patch

12 lines
397 B
Diff

--- Makefile
+++ Makefile
@@ -92,7 +92,7 @@ libxxhash.a: xxhash.o
$(LIBXXH): LDFLAGS += -shared -fPIC
$(LIBXXH): xxhash.c
@echo compiling dynamic library $(LIBVER)
- @$(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
+ @$(CC) $(FLAGS) $^ -shared $(LDFLAGS) $(SONAME_FLAGS) -o $@
@echo creating versioned links
@ln -sf $@ libxxhash.$(SHARED_EXT_MAJOR)
@ln -sf $@ libxxhash.$(SHARED_EXT)