summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-23 19:53:06 -0500
committermidipix <writeonce@midipix.org>2018-12-24 07:52:01 -0500
commit1cd6eb7baf34ee17b434c2626e4c19cf05af424e (patch)
tree497d78900d684d5270ebe2a632ad70c5f621d96f /project/config
parent944db02f2f99be9c8da38b00eef2634abebdf3e7 (diff)
downloadsbpython2-1cd6eb7baf34ee17b434c2626e4c19cf05af424e.tar.bz2
sbpython2-1cd6eb7baf34ee17b434c2626e4c19cf05af424e.tar.xz
project: custom config: updated to keep up with Python-3.x.
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 74dcee1..e976ee6 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -90,6 +90,8 @@ cfgdefs_perform_common_tests()
cfgtest_header_presence 'sys/sysmacros.h'
cfgtest_header_presence 'sys/uio.h'
cfgtest_header_presence 'sys/xattr.h'
+ cfgtest_header_presence 'uuid.h'
+ cfgtest_header_presence 'uuid/uuid.h'
# interfaces
mb_cfgtest_headers='sys/epoll.h'
@@ -205,6 +207,14 @@ cfgdefs_perform_common_tests()
cfgtest_ldflags_append '-Wl,--as-needed -lintl -Wl,--no-as-needed'
fi
+ # libuuid
+ cfgtest_newline
+ cfgtest_comment 'libuuid'
+
+ if cfgtest_library_presence -luuid; then
+ cfgtest_ldflags_append '-Wl,--as-needed -luuid -Wl,--no-as-needed'
+ fi
+
# ncurses
cfgtest_newline
cfgtest_comment 'ncurses/ncursesw'
@@ -356,6 +366,7 @@ cfgdefs_perform_target_tests()
mb_cfgtest_makevar='LDFLAGS_PYEXT_STATIC'
cfgtest_makevar_append '-Wl,--as-needed -lssl -lcrypto -Wl,--no-as-needed'
+ cfgtest_makevar_append '-Wl,--as-needed -luuid -Wl,--no-as-needed'
cfgtest_makevar_append '-Wl,--as-needed -lbz2 -Wl,--no-as-needed'
cfgtest_makevar_append '-Wl,--as-needed -lffi -Wl,--no-as-needed'
cfgtest_makevar_append '-Wl,--as-needed -lgdbm -Wl,--no-as-needed'