From: Stephane Glondu Date: Sat, 16 Apr 2011 14:15:46 +0000 (+0200) Subject: Use pkg-config to determine path of X11 library (Closes: #619344) X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~317 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1db9b654b7d8b702cddb44df5aea1982f3120883;p=ocaml.git Use pkg-config to determine path of X11 library (Closes: #619344) --- diff --git a/debian/control b/debian/control index 2b490aa2..7fd4d413 100644 --- a/debian/control +++ b/debian/control @@ -11,6 +11,7 @@ Uploaders: Mehdi Dogguy Build-Depends: debhelper (>= 7.1.0~), + pkg-config, autotools-dev, binutils-dev, tcl8.5-dev, diff --git a/debian/rules b/debian/rules index 7f78cc3c..2f6d8c50 100755 --- a/debian/rules +++ b/debian/rules @@ -56,6 +56,7 @@ export OCAML_STDLIB_DIR CONFIGURE_OPTS := \ --with-pthread -prefix /usr \ -libdir $(OCAML_STDLIB_DIR) \ + -x11lib "$(shell pkg-config --variable=libdir x11)" \ -mandir /usr/share/man \ -tkdefs "-I/usr/include/tcl8.5" \ -tklibs "-L/usr/lib -ltk8.5 -ltcl8.5"