summaryrefslogtreecommitdiffstats
path: root/printer/ghostscript/BUILD
blob: e194335f7fa9cc6b050afe3c0e91d805d8efad39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CFLAGS+=" -Wno-unused-but-set-variable -Wno-unused-variable -Wno-maybe-uninitialized"
# need a comma separated list
OPTS="--with-drivers=`echo ${GS_PRINTERS} | \
      sed "s/  */ /g;s/^ *//;s/ *$/ /;s/^NONE //;s/ /,/g"`JAPAN,FILES \
      --enable-dynamic ${OPTS}" &&

# -s causes libgs.so to be fully stripped
LDFLAGS+=' '
LDFLAGS="${LDFLAGS//-s }"

LIBS+=" -lz" default_build &&

if [[ $GS_LIBGS == y ]]; then
  make so
fi