summaryrefslogtreecommitdiff
path: root/package/cups/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-31 14:44:13 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-31 14:44:13 +0200
commit63d026ea19c657fd4f5f9675be86daacc7410263 (patch)
tree8edca83ccc0f5b1d2c69aabc182f36d8ceca73f3 /package/cups/Makefile
parent7ff3b1b184456af0fb948005ca7fe66d19e09e29 (diff)
fix compile when SSP is activated
Diffstat (limited to 'package/cups/Makefile')
-rw-r--r--package/cups/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/cups/Makefile b/package/cups/Makefile
index d57bda49a..762f1832a 100644
--- a/package/cups/Makefile
+++ b/package/cups/Makefile
@@ -43,7 +43,11 @@ CONFIGURE_ARGS+= --with-cups-user=cups \
--disable-ssl
FAKE_FLAGS+= DSTROOT="${WRKINST}" STRIP="/bin/true"
+ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
+XAKE_FLAGS+= OPTIM='-fPIC -fstack-protector'
+else
XAKE_FLAGS+= OPTIM='-fPIC'
+endif
post-install:
${INSTALL_DIR} ${IDIR_CUPS}/usr/bin