[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] use host PCRE to build the Debian package
From: |
Ivan Shmakov |
Subject: |
[Chicken-hackers] use host PCRE to build the Debian package |
Date: |
Mon, 07 Jan 2008 07:46:31 +0600 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Currently, the Debian package for Chicken is being built with
the binaries statically linked to the embedded copy of PCRE.
Since I expect for Debian to do its best on supporting its own
PCRE package, I suggest changing the build system to link
against the host version of PCRE for building the Debian
package.
The following should be the essential part of the change. The
`debian/control' file should also be changed to properly state
the newly introduced dependency (namely, `libpcre3-dev'.)
There should probably be a separate Make variable to allow easy
linking with host PCRE, like:
LINK_WITH_EMBEDDED_PCRE=yes
ifneq ($(LINK_WITH_EMBEDDED_PCRE),yes)
LIBRARIES += -lpcre
PCRE_INCLUDES ?=
C_COMPILER_PCRE_OPTIONS ?=
PCRE_OBJECTS_1 =
endif
This variable could be used to eliminate `pcre/pcre.h' from the
list of dependencies of the certain rules within `rules.make'.
The following patch doesn't require such a variable.
diff --git a/debian/rules b/debian/rules
index 6ea008e..5fd7804 100644
--- a/debian/rules
+++ b/debian/rules
@@ -21,7 +21,20 @@ build: build-stamp
build-stamp:
dh_testdir
# CFLAGS="$(CFLAGS)" ./configure --prefix=/usr
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
- $(MAKE) MAKEINFO_PROGRAM_OPTIONS="" CFLAGS="$(CFLAGS)"
PREFIX="$(PREFIX)" MANDIR="$(PREFIX)/share/man" INFODIR="$(PREFIX)/share/info"
SHAREDIR="$(PREFIX)/share" EGGDIR="/var/lib/chicken/$(BINARYVERSION)"
MAKEINFO_PROGRAM_OPTIONS= HOSTNAME=debian
+ $(MAKE) \
+ MAKEINFO_PROGRAM_OPTIONS="" \
+ CFLAGS="$(CFLAGS)" \
+ LIBRARIES="-lm -ldl -lpcre" \
+ PCRE_INCLUDES= \
+ C_COMPILER_PCRE_OPTIONS= \
+ PCRE_OBJECTS_1= \
+ PREFIX="$(PREFIX)" \
+ MANDIR="$(PREFIX)/share/man" \
+ INFODIR="$(PREFIX)/share/info" \
+ SHAREDIR="$(PREFIX)/share" \
+ EGGDIR="/var/lib/chicken/$(BINARYVERSION)" \
+ MAKEINFO_PROGRAM_OPTIONS= \
+ HOSTNAME=debian
touch build-stamp
clean:
- [Chicken-hackers] use host PCRE to build the Debian package,
Ivan Shmakov <=
Re: [Chicken-hackers] use host PCRE to build the Debian package, felix winkelmann, 2008/01/08