aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorMichael Witten <mfwitten@gmail.com>2010-01-16 21:13:31 +0000
committerNick Mathewson <nickm@torproject.org>2010-01-18 22:10:06 -0500
commita5e83769b762d9fa09d0600d68ebdbe5c33f6da3 (patch)
treec70250d224c469c4c36e770d4c1757d84d425673 /src/or/routerlist.c
parentc32e8c292e4061857542ef7a131d800794253a90 (diff)
downloadtor-a5e83769b762d9fa09d0600d68ebdbe5c33f6da3.tar
tor-a5e83769b762d9fa09d0600d68ebdbe5c33f6da3.tar.gz
Build Bug: -lm should come after passing ../common/libor.a to linker
The following commit: commit e56747f9cf29ed788baf8805bfe391925d8a19da Author: Nick Mathewson <nickm@torproject.org> Date: Tue Dec 15 14:32:55 2009 -0500 Refactor a bit so that it is safe to include math.h, and mostly not needed. introduced this line: tor_resolve_LDADD = -lm ../common/libor.a @TOR_LIB_WS32@ which caused the build to fail, because only ../common/libor.a (via the embedded ../common/util.o via ../common/util.c) referenced libm's `lround' and `log' symbols, so that the linker (GNU ld) didn't bother to import those symbols before reading ../common/libor.a, thus leaving those symbols undefined. The solution was to swap the order, producing the line: tor_resolve_LDADD = ../common/libor.a -lm @TOR_LIB_WS32@ Signed-off-by: Michael Witten <mfwitten@gmail.com>
Diffstat (limited to 'src/or/routerlist.c')
0 files changed, 0 insertions, 0 deletions