void-packages/srcpkgs/radare2/patches/try.patch

21 lines
819 B
Diff

--- a/shlr/Makefile 2020-12-21 09:39:46.000000000 +0100
+++ b/shlr/Makefile 2021-01-04 22:13:43.513442861 +0100
@@ -122,7 +122,7 @@
SDB_LIBA=sdb/src/libsdb.a
$(SDB_HOST):
- $(MAKE) sdb-host HOST_CC=$(HOST_CC) CC=$(HOST_CC)
+ $(MAKE) sdb-host HOST_CC=$(HOST_CC) CC=$(HOST_CC) LD=ld
$(SDB_LIBA):
$(MAKE) sdb-target
@@ -136,7 +136,7 @@
@echo ">>>>>>>>"
@echo
$(MAKE) -C sdb clean ; rm -f sdb/src/*.o sdb/src/sdb_version.h
- $(MAKE) -C sdb/src "CC=${HOST_CC}" LDFLAGS='${HOST_LDFLAGS}' CPPFLAGS='' CFLAGS='${HOST_CFLAGS} ${PIC}' bin
+ $(MAKE) -C sdb/src "CC=${HOST_CC}" "LD=ld" LDFLAGS='${HOST_LDFLAGS}' CPPFLAGS='' CFLAGS='${HOST_CFLAGS} ${PIC}' bin
cp -f sdb/src/sdb${BUILD_EXT_EXE} sdb/src/.sdb${BUILD_EXT_EXE}
cp -f sdb/src/sdb${BUILD_EXT_EXE} sdb/sdb$(BUILD_EXT_EXE)
-file sdb/sdb$(BUILD_EXT_EXE)