Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra include/lib path via CPPFLAGS/LDFLAGS not working #13

Closed
michaelrsweet opened this issue Apr 7, 2003 · 1 comment
Closed

extra include/lib path via CPPFLAGS/LDFLAGS not working #13

michaelrsweet opened this issue Apr 7, 2003 · 1 comment

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-current
CUPS.org User: heath.kehoe.intermec

I set env vars when running configure so that it finds my libjpeg, libtiff, libz, and libpng. These are:

CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

The configure finds the libs and headers OK and sets config.h appropriately. But when I go to compile, the -I/usr/local/include is not appearing on the compile command lines. Also, the -L/usr/local/lib does not appear on the shared-library link command line.

To fix the -I, I changed Makedefs.in as follows:

--- Makedefs.in 12 Mar 2003 20:40:09 -0000 1.36.2.14
+++ Makedefs.in 7 Apr 2003 22:52:31 -0000
@@ -84,7 +84,7 @@

ARFLAGS = @ARFLAGS@
BACKLIBS = @BACKLIBS@
-CFLAGS = $(RC_CFLAGS) @CFLAGS@ -I.. $(OPTIONS)
+CFLAGS = $(RC_CFLAGS) @CFLAGS@ @CPPFLAGS@ -I.. $(OPTIONS)
COMMONLIBS = @Commonlibs@
CXXFLAGS = $(RC_CFLAGS) @CXXFLAGS@ -I.. $(OPTIONS)
CXXLIBS = @CXXLIBS@

And to fix the -L for shared libs I changed config-scripts/cups-sharedlibs.m4:

--- cups-sharedlibs.m4 28 Jan 2003 15:32:57 -0000 1.6.2.14
+++ cups-sharedlibs.m4 7 Apr 2003 22:53:22 -0000
@@ -24,6 +24,7 @@

PICFLAG=1
DSOFLAGS="${DSOFLAGS:=}"
+DSOFLAGS="$DSOFLAGS $LDFLAGS"

AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries, default=yes])

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in CVS for 1.1.19rc2 and 1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant