mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-lang/duktape: fix respect-tc-env patch
Closes: https://bugs.gentoo.org/756367 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -20,6 +20,8 @@ PATCHES=(
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Set install path
|
||||
sed -i "s#INSTALL_PREFIX = /usr/local#INSTALL_PREFIX = ${ED}/usr#" \
|
||||
Makefile.sharedlibrary || die "failed to set install path"
|
||||
@@ -33,8 +35,6 @@ src_prepare() {
|
||||
Makefile.sharedlibrary || die
|
||||
|
||||
mv Makefile.sharedlibrary Makefile || die "failed to rename makefile"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
diff --git a/Makefile.sharedlibrary b/Makefile.sharedlibrary
|
||||
index 156ea96..a0997b1 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -52,7 +52,7 @@ INSTALL_PREFIX = /var/tmp/portage/dev-lang/duktape-2.6.0/image/usr
|
||||
--- a/Makefile.sharedlibrary
|
||||
+++ b/Makefile.sharedlibrary
|
||||
@@ -52,7 +52,7 @@ INSTALL_PREFIX = /usr/local
|
||||
DUKTAPE_SRCDIR = ./src
|
||||
#DUKTAPE_SRCDIR = ./src-noline
|
||||
|
||||
@@ -29,5 +29,5 @@ index 156ea96..a0997b1 100644
|
||||
|
||||
CCOPTS = -I./examples/cmdline
|
||||
duk:
|
||||
- $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib64 -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
|
||||
+ $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib64 ${CFLAGS} -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
|
||||
- $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
|
||||
+ $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib ${CFLAGS} -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
|
||||
|
||||
Reference in New Issue
Block a user