Browse Source

fix compile when SSP is activated

Waldemar Brodkorb 14 years ago
parent
commit
63d026ea19
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/cups/Makefile

+ 4 - 0
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