[PATCH] Makefile: Make 'configure --with-expat=path' actually work
- From
- Serge van den Boom <svdb@stack.nl>
- Date
- Jan 25, 2009, 19:24 UTC
- Message-ID
- <alpine.BSF.2.00.0901251938120.97940@toad.stack.nl>
The prefix specified with the --with-expat option of configure was not actually used.
Signed-off-by: Serge van den Boom <svdb@stack.nl> ---
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