Skip to content

Commit 80c1197

Browse files
committed
More M4 links
1 parent e24842e commit 80c1197

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

lb/code/m4/README.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
These may be hard links to swift-t/dev/m4/*.m4

lb/code/m4/syslibs.m4

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# SYSLIBS.M4
3+
4+
# We take system libraries out of arguments to the linker
5+
# to prevent system libraries from pre-empting custom user
6+
# library locations.
7+
# We do not currently have a solution for this on the Mac. (#88)
8+
# Cf. https://code.google.com/p/exm-issues/issues/detail?id=546
9+
10+
AC_MSG_NOTICE([Generating system-libs.txt])
11+
12+
AC_PATH_PROG([LDCONFIG],[ldconfig],[no],["$PATH:/sbin"])
13+
if [[ ${LDCONFIG} == no ]]
14+
then
15+
AC_MSG_NOTICE([\
16+
Could not find ldconfig. \
17+
The linker may use system directories. \
18+
See /dev/m4/syslib.m4 for more information.])
19+
fi
20+
21+
if [[ ${USE_MAC} == "no" ]]
22+
then
23+
# This does not work on the Mac
24+
${LDCONFIG} -v 2>/dev/null | grep -vP '\t' | cut -d : -f 1 > system-libs.txt
25+
else
26+
touch system-libs.txt
27+
fi

turbine/code/m4/README.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
These may be hard links to swift-t/dev/m4/*.m4

0 commit comments

Comments
 (0)