From: Serge van den Boom Date: Sun, 25 Jan 2009 19:24:41 GMT Subject: [PATCH] Makefile: Make 'configure --with-expat=path' actually work Message-ID: The prefix specified with the --with-expat option of configure was not actually used. Signed-off-by: Serge van den Boom --- diff --git a/Makefile b/Makefile index b4d9cb4..e7218cb 100644 --- a/Makefile +++ b/Makefile @@ -849,7 +849,12 @@ else endif endif ifndef NO_EXPAT - EXPAT_LIBEXPAT = -lexpat + ifdef EXPATDIR + BASIC_CFLAGS += -I$(EXPATDIR)/include + EXPAT_LIBEXPAT = -L$(EXPATDIR)/$(lib) $(CC_LD_DYNPATH)$(EXPATDIR)/$(lib) -lexpat + else + EXPAT_LIBEXPAT = -lexpat + endif endif endif