Browse Source

gmic: Respect LDFLAGS

Fixes DT_RUNPATH (see #3490)
emacs-27
Fredrik Fornwall 6 years ago
parent
commit
25aaa34b1a
  1. 2
      packages/gmic/build.sh
  2. 2
      packages/gmic/makefile.patch

2
packages/gmic/build.sh

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://gmic.eu
TERMUX_PKG_DESCRIPTION="Full-featured framework for image processing"
TERMUX_PKG_LICENSE="CeCILL-2.1"
TERMUX_PKG_VERSION=2.4.5
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=e87efa20abdedf5e0000c490669d76c8a8d16a9fafa27bc9e31b79b5cbc3277f
TERMUX_PKG_SRCURL=https://gmic.eu/files/source/gmic_$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_DEPENDS="graphicsmagick++, libcurl, fftw, libpng, libjpeg-turbo, libtiff"

2
packages/gmic/makefile.patch

@ -47,7 +47,7 @@ diff -u -r ../gmic-2.2.3/src/Makefile ./src/Makefile
cli:
- $(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
- $(STRIP) gmic$(EXE)
+ $(MAKE) "CFLAGS+= $(CXXFLAGS) $(GMIC_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
+ $(MAKE) "CFLAGS+= $(CXXFLAGS) $(LDFLAGS) $(GMIC_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
debug:
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli

Loading…
Cancel
Save