summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-scheme/chicken/chicken-5.2.0.ebuild2
-rw-r--r--dev-scheme/chicken/files/chicken-ldflags.patch11
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-scheme/chicken/chicken-5.2.0.ebuild b/dev-scheme/chicken/chicken-5.2.0.ebuild
index 0cc432c1fbe5..1b2a5a137432 100644
--- a/dev-scheme/chicken/chicken-5.2.0.ebuild
+++ b/dev-scheme/chicken/chicken-5.2.0.ebuild
@@ -17,6 +17,8 @@ IUSE="doc"
RDEPEND=""
DEPEND=""
+PATCHES=( "${FILESDIR}"/${PN}-ldflags.patch )
+
src_prepare() {
default
diff --git a/dev-scheme/chicken/files/chicken-ldflags.patch b/dev-scheme/chicken/files/chicken-ldflags.patch
new file mode 100644
index 000000000000..4523526e44a4
--- /dev/null
+++ b/dev-scheme/chicken/files/chicken-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/rules.make
++++ b/rules.make
+@@ -253,7 +253,7 @@
+ # "chicken-do"
+
+ $(CHICKEN_DO_PROGRAM)$(EXE): $(SRCDIR)chicken-do.c
+- $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS) $< -o $@
++ $(C_COMPILER) $(C_COMPILER_OPTIONS) $(C_COMPILER_OPTIMIZATION_OPTIONS) $(LINKER_OPTIONS) $< -o $@
+
+ # scripts
+