Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flathub/shared-modules.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLctrs <Lctrs@users.noreply.github.com>2020-07-03 11:27:00 +0300
committerPatrick <tingping@tingping.se>2020-07-03 23:43:52 +0300
commitb177b99b966c8640e1788c9b8f4438c2993a2978 (patch)
tree7e754d77133676a2037704d990bfd51e061d04f5
parent2ea43be923edb2cef57aa4820b3cae391c440c8f (diff)
glew: use build flags defined in the runtime
-rw-r--r--glew/glew.json16
1 files changed, 10 insertions, 6 deletions
diff --git a/glew/glew.json b/glew/glew.json
index 92c62c9..ae326a2 100644
--- a/glew/glew.json
+++ b/glew/glew.json
@@ -2,14 +2,18 @@
"name": "glew",
"no-autogen": true,
"make-args": [
- "GLEW_PREFIX=/app",
- "GLEW_DEST=/app",
- "LIBDIR=/app/lib"
+ "GLEW_PREFIX=${FLATPAK_DEST}",
+ "GLEW_DEST=${FLATPAK_DEST}",
+ "LIBDIR=${FLATPAK_DEST}/lib",
+ "CFLAGS.EXTRA:=${CFLAGS} -fPIC",
+ "LDFLAGS.EXTRA=${LDFLAGS}"
],
"make-install-args": [
- "GLEW_PREFIX=/app",
- "GLEW_DEST=/app",
- "LIBDIR=/app/lib"
+ "GLEW_PREFIX=${FLATPAK_DEST}",
+ "GLEW_DEST=${FLATPAK_DEST}",
+ "LIBDIR=${FLATPAK_DEST}/lib",
+ "CFLAGS.EXTRA:=${CFLAGS} -fPIC",
+ "LDFLAGS.EXTRA=${LDFLAGS}"
],
"sources": [
{