From 1db9b654b7d8b702cddb44df5aea1982f3120883 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Sat, 16 Apr 2011 16:15:46 +0200 Subject: [PATCH] Use pkg-config to determine path of X11 library (Closes: #619344) --- debian/control | 1 + debian/rules | 1 + 2 files changed, 2 insertions(+) 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" -- 2.30.2