summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2008-06-01 17:58:02 -0700
committerJosh Triplett <josh@freedesktop.org>2008-06-01 17:58:02 -0700
commit3f196919cdc01578cafecc4ec551165d8ea8d34a (patch)
treed99ed935135a8d2314560e9edb22050fbfec4c1d
parentfb640ed2c980dcd20edd98a7da2b7a3bc411a888 (diff)
Handle subdir-objects correctly.
doltcompile wrote out .lo files with full paths to the objects. However, .lo files should have relative paths to the objects. This made compilation fail when using automake's subdir-objects option. Fix by writing out the correct relative object paths. Thanks to Alp Toker for testing.
-rw-r--r--dolt.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/dolt.m4 b/dolt.m4
index 70ddfab..2fd6ed2 100644
--- a/dolt.m4
+++ b/dolt.m4
@@ -104,7 +104,7 @@ __DOLTCOMPILE__EOF__
if test x$enable_shared = xyes; then
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
-echo "pic_object='$pic_object'"
+echo "pic_object='.libs/${objbase}.o'"
__DOLTCOMPILE__EOF__
else
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
@@ -114,7 +114,7 @@ __DOLTCOMPILE__EOF__
if test x$enable_static = xyes; then
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
-echo "non_pic_object='$non_pic_object'"
+echo "non_pic_object='${objbase}.o'"
__DOLTCOMPILE__EOF__
else
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile