summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-04-07 22:12:41 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-04-07 22:12:41 -0700
commit1171e7042fbcedb95eecda2856275fc2a119b212 (patch)
tree17de075e44a417c2f4b1ce05a7b0e964535016b6 /ChangeLog
parentf5ce48225c096a8fade377c3c6648970fa38a5a3 (diff)
downloadtxr-1171e7042fbcedb95eecda2856275fc2a119b212.tar.gz
txr-1171e7042fbcedb95eecda2856275fc2a119b212.tar.bz2
txr-1171e7042fbcedb95eecda2856275fc2a119b212.zip
Fixes to get configure ccname=g++ working on OSX Lion.
* Makefile (conftest.syms): Use -n flag in nm so that the output is not alphabetically sorted, but numerically. We need this to get the symbols ordered by increasing offset. * configure (read_syms): New function. Factors out logic used in two places for reading the output of nm. On OSX Lion, it looks like we do not get symbol sizes but offsets only, when compiling with g++. The symbols are in an S section. When compiling with gcc, we get a common C section with symbol sizes. So the hack is to use the deltas between offsets to get the sizes. The objects had to be re-ordered in decreasing rank so alignment doesn't create padding that will get counted as the size. Interleaved dummy objects of type char should also work.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ee07d65..abedc1ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,23 @@
2012-04-07 Kaz Kylheku <kaz@kylheku.com>
+ Fixes to get configure ccname=g++ working on OSX Lion.
+
+ * Makefile (conftest.syms): Use -n flag in nm so that the output
+ is not alphabetically sorted, but numerically. We need this
+ to get the symbols ordered by increasing offset.
+
+ * configure (read_syms): New function. Factors out logic used
+ in two places for reading the output of nm. On OSX Lion, it looks
+ like we do not get symbol sizes but offsets only, when compiling
+ with g++. The symbols are in an S section. When compiling with
+ gcc, we get a common C section with symbol sizes.
+ So the hack is to use the deltas between offsets to get the sizes.
+ The objects had to be re-ordered in decreasing rank so alignment
+ doesn't create padding that will get counted as the size.
+ Interleaved dummy objects of type char should also work.
+
+2012-04-07 Kaz Kylheku <kaz@kylheku.com>
+
* configure: Print done and terminate line after checking for
clashing symbols.