summaryrefslogtreecommitdiff
path: root/libhurd-btree
diff options
context:
space:
mode:
authortschwinge <tschwinge>2008-05-30 00:28:21 +0000
committertschwinge <tschwinge>2008-05-30 00:28:21 +0000
commita7ecdb280f6760d81b655be491819747f822decd (patch)
treef45991f6118c8223510656e0877b97983941d53e /libhurd-btree
parentb4a0c9e55fdb4c2717f4900c63723f15c02e0734 (diff)
2008-05-29 Thomas Schwinge <tschwinge@gnu.org>
* headers.m4: Link files into `sysroot/include/' instead of `include/'. Create symbolic link to package's library in `sysroot/lib/'. * Makefile.am: When building package's libraries, differentiate between [ENABLE_TESTS] with respect to build flags.
Diffstat (limited to 'libhurd-btree')
-rw-r--r--libhurd-btree/ChangeLog5
-rw-r--r--libhurd-btree/Makefile.am8
-rw-r--r--libhurd-btree/headers.m48
3 files changed, 19 insertions, 2 deletions
diff --git a/libhurd-btree/ChangeLog b/libhurd-btree/ChangeLog
index 46d1533..b87a8a6 100644
--- a/libhurd-btree/ChangeLog
+++ b/libhurd-btree/ChangeLog
@@ -1,5 +1,10 @@
2008-05-29 Thomas Schwinge <tschwinge@gnu.org>
+ * headers.m4: Link files into `sysroot/include/' instead of `include/'.
+ Create symbolic link to package's library in `sysroot/lib/'.
+ * Makefile.am: When building package's libraries, differentiate between
+ [ENABLE_TESTS] with respect to build flags.
+
* Makefile.am (btree_test_CPPFLAGS): Remove special `printf' handling.
2008-02-21 Neal H. Walfield <neal@gnu.org>
diff --git a/libhurd-btree/Makefile.am b/libhurd-btree/Makefile.am
index bd0f699..ffd6656 100644
--- a/libhurd-btree/Makefile.am
+++ b/libhurd-btree/Makefile.am
@@ -24,8 +24,14 @@ lib_LIBRARIES = libhurd-btree.a
includehurddir = $(includedir)/hurd
includehurd_HEADERS = btree.h
-libhurd_btree_a_CPPFLAGS = $(USER_CPPFLAGS) -DNCHECKS
+libhurd_btree_a_CPPFLAGS = -DNCHECKS
+if ENABLE_TESTS
+libhurd_btree_a_CPPFLAGS += $(CHECK_CPPFLAGS)
+libhurd_btree_a_CFLAGS = $(CHECK_CFLAGS)
+else
+libhurd_btree_a_CPPFLAGS += $(USER_CPPFLAGS)
libhurd_btree_a_CFLAGS = $(USER_CFLAGS)
+endif
libhurd_btree_a_SOURCES = btree.h btree.c
TESTS = btree-test
diff --git a/libhurd-btree/headers.m4 b/libhurd-btree/headers.m4
index 15bb7f9..6f37c5f 100644
--- a/libhurd-btree/headers.m4
+++ b/libhurd-btree/headers.m4
@@ -10,4 +10,10 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-AC_CONFIG_LINKS([include/hurd/btree.h:libhurd-btree/btree.h])
+AC_CONFIG_LINKS([sysroot/include/hurd/btree.h:libhurd-btree/btree.h])
+
+AC_CONFIG_COMMANDS_POST([
+ mkdir -p sysroot/lib libhurd-btree &&
+ ln -sf ../../libhurd-btree/libhurd-btree.a sysroot/lib/ &&
+ touch libhurd-btree/libhurd-btree.a
+])