aboutsummaryrefslogtreecommitdiff
path: root/src/or/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-10-18 13:49:35 -0400
committerNick Mathewson <nickm@torproject.org>2017-10-18 13:49:35 -0400
commit72b5e4a2db4282002fe50e11c2b8a79e108d30f8 (patch)
treefe3b853d65170b1d3c30df4a6d9553ae51c3fc64 /src/or/include.am
parentb9b5f9a1a5a683611789ffe4c49e41325102cabc (diff)
downloadtor-72b5e4a2db4282002fe50e11c2b8a79e108d30f8.tar.gz
tor-72b5e4a2db4282002fe50e11c2b8a79e108d30f8.zip
Move tor_git_revision into a new module.
At first, we put the tor_git_revision constant in tor_main.c, so that we wouldn't have to recompile config.o every time the git revision changed. But putting it there had unintended side effect of forcing every program that wanted to link libor.a (including test, test-slow, the fuzzers, the benchmarks, etc) to declare their own tor_git_revision instance. That's not very nice, especially since we want to start supporting others who want to link against Tor (see 23846). So, create a new git_revision.c file that only contains this constant, and remove the duplicated boilerplate from everywhere else. Part of implementing ticket 23845.
Diffstat (limited to 'src/or/include.am')
-rw-r--r--src/or/include.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/include.am b/src/or/include.am
index 7216aba9af..662bd4807c 100644
--- a/src/or/include.am
+++ b/src/or/include.am
@@ -51,6 +51,7 @@ LIBTOR_A_SOURCES = \
src/or/geoip.c \
src/or/entrynodes.c \
src/or/ext_orport.c \
+ src/or/git_revision.c \
src/or/hibernate.c \
src/or/hs_cache.c \
src/or/hs_cell.c \
@@ -189,6 +190,7 @@ ORHEADERS = \
src/or/fp_pair.h \
src/or/geoip.h \
src/or/entrynodes.h \
+ src/or/git_revision.h \
src/or/hibernate.h \
src/or/hs_cache.h \
src/or/hs_cell.h \