[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUstep install
From: |
Sebastian Reitenbach |
Subject: |
Re: GNUstep install |
Date: |
Sun, 14 Nov 2010 12:07:11 +0100 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090701) |
Germán Arias wrote:
> On vie, 2010-11-12 at 18:10 +0100, Stefan Elwesthål wrote:
>
>> Nice to hear, I'll just move on then.
>>
>>
>> I've just given up to build PDFKit, won't happen, seem it likes to use
>> old freetype headers. Better skip that and go straight to building
>> Gworkspace. I just apt-getted wmaker.
>>
>
> Something like:
>
> ./configure --with-freetype2-includes=/usr/include/freetype2
> --with-freetype2-library=/usr/lib
I also just fiddled around with PDFKit, Above was not enough for me on
OpenBSD, I had to do:
./configure --with-freetype2-includes=/usr/X11R6/include/freetype2
--with-freetype2-library=/usr/X11R6/lib
--with-freetype2-add-includes=/usr/X11R6/include
and I had to apply attached patch, since the configure of xpdf failed
with the freetype check. The linking failed, since freetype is linked
against -lz, but the configure for xpdf did not. I tried to find a way
to propagate the LDFLAGS from outside, i.e. LDFLAGS=-lz ./configure for
the whole PDFKIT, but it did not got propagated, therefore I had to
hardcode it in the GNUmakefile.in.
Is there actually any better way to get the LDFLAGS propagated to the
configure or make call?
cheers,
Sebastian
sebastia
Description: application/http-index-format
$OpenBSD$
propagate CXXFLAGS and CPPFLAGS to configure and make, and link against libz
--- xpdf/xpdf-3.02/GNUmakefile.in.orig Wed Jun 30 10:46:33 2010
+++ xpdf/xpdf-3.02/GNUmakefile.in Sun Nov 14 11:49:22 2010
@@ -26,8 +26,8 @@ LIB_FREETYPE_ADD_INCLUDES=@lib_freetype_add_includes@
CPPFLAGS := -fPIC
CXXFLAGS := -fPIC -Wno-write-strings
ifneq ($(LIB_FREETYPE_ADD_INCLUDES),)
- CPPFLAGS := $(CPPFLAGS) -I$(LIB_FREETYPE_ADD_INCLUDES)
- CXXFLAGS := $(CXXFLAGS) -I$(LIB_FREETYPE_ADD_INCLUDES)
+ CPPFLAGS := $(CPPFLAGS) $(LIB_FREETYPE_ADD_INCLUDES)
+ CXXFLAGS := $(CXXFLAGS) $(LIB_FREETYPE_ADD_INCLUDES)
endif
export CPPFLAGS CXXFLAGS
@@ -38,12 +38,12 @@ all: compile
configure: Makefile
Makefile:
- CC=@CC@ CXX=@CXX@ ./configure --without-x \
- --with-freetype2-library=$(LIB_FREETYPE_LIBS) \
- --with-freetype2-includes=$(LIB_FREETYPE_INCLUDES)
+ CC=@CC@ CXX=@CXX@ CXXFLAGS="${CXXFLAGS}" CPPFLAGS="${CPPFLAGS}"
LDFLAGS="-lz" ./configure --without-x \
+ --with-freetype2-library=$(LIB_FREETYPE_LIBS) \
+ --with-freetype2-includes=$(LIB_FREETYPE_INCLUDES)
compile: configure
- $(MAKE) -f Makefile pdfkit
+ CXXFLAGS="${CXXFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
$(MAKE) -f Makefile pdfkit
distclean: configure
$(MAKE) -f Makefile distclean