jasper: Don't overwrite CFLAGS when configured with --enable-debug
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 19 May 2015 18:28:59 +0000 (21:28 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 19 May 2015 19:36:05 +0000 (21:36 +0200)
This drops architecture-specific ABI flags, which may be important.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/jasper/0007-preserve-cflags.patch [new file with mode: 0644]

diff --git a/package/jasper/0007-preserve-cflags.patch b/package/jasper/0007-preserve-cflags.patch
new file mode 100644 (file)
index 0000000..7e4c4a2
--- /dev/null
@@ -0,0 +1,27 @@
+From: Max Filippov <jcmvbkbc@gmail.com>
+Subject: Don't overwrite CFLAGS when configured with --enable-debug
+
+This drops architecture-specific ABI flags, which may be important.
+
+Signded-off-by: Max Filippov <jcmvbkbc@gmail.com>
+
+--- jasper-1.900.1/configure.ac.orig   2015-05-18 22:27:53.057512760 +0300
++++ jasper-1.900.1/configure.ac        2015-05-18 22:28:36.090415422 +0300
+@@ -327,7 +327,7 @@
+       AC_DEFINE(DEBUG)
+       AC_DEFINE(DEBUG_OVERFLOW)
+       if test "$GCC" = yes; then
+-              CFLAGS="-g -O0"
++              CFLAGS="$CFLAGS -g -O0"
+       fi
+       ;;
+ no)
+@@ -357,7 +357,7 @@
+ case "${enableval}" in
+ yes)
+       if test "$GCC" = yes; then
+-              CFLAGS="-g -O0"
++              CFLAGS="$CFLAGS -g -O0"
+       fi
+       ;;
+ no)