Skip to content

Commit

Permalink
Merge pull request #28 from saper/respect-cups-ldflags-GxB
Browse files Browse the repository at this point in the history
BSD compatibility: Respect cups-config --ldflags
  • Loading branch information
mounaiban authored Jan 17, 2023
2 parents 175f8ff + 5dd1eb3 commit 8ecc3cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ if test -z "${CUPS_CONFIG}"; then
AC_MSG_FAILURE([CUPS library not found.])
fi
CUPS_CFLAGS="`${CUPS_CONFIG} --cflags`"
CUPS_LDFLAGS="`${CUPS_CONFIG} --image --ldflags`"
CUPS_LIBS="`${CUPS_CONFIG} --image --libs`"
AC_SUBST(CUPS_CFLAGS)
AC_SUBST(CUPS_LDFLAGS)
AC_SUBST(CUPS_LIBS)

AC_CONFIG_FILES([Makefile
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rastertocapt_SOURCES = rastertocapt.c \

rastertocapt_SOURCES += prn_lbp2900.c

rastertocapt_LDADD = $(CUPS_LIBS)
rastertocapt_LDADD = $(CUPS_LDFLAGS) $(CUPS_LIBS)

nodist_data_DATA = Makefile.in

Expand Down

0 comments on commit 8ecc3cd

Please sign in to comment.