summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1997-03-01 19:35:32 +0000
committerTom Yu <tlyu@mit.edu>1997-03-01 19:35:32 +0000
commit81b495d728ffaa3a5d5629af4a7844a06fbf21a5 (patch)
treec2512f172bbdcfe25fda9caf5d553158eec27294
parent22b123104922e7ae172be2beea050c2ef8497805 (diff)
downloadkrb5-81b495d728ffaa3a5d5629af4a7844a06fbf21a5.tar.gz
krb5-81b495d728ffaa3a5d5629af4a7844a06fbf21a5.tar.xz
krb5-81b495d728ffaa3a5d5629af4a7844a06fbf21a5.zip
* libobj.in: Change .c.so and .c.po rules to work better with
compilers that insist that $(CC) -fpic -c foo.c -o foo.so is wrong; basically, cheat and do -o foo.so.o, etc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9993 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/config/ChangeLog6
-rw-r--r--src/config/libobj.in6
2 files changed, 10 insertions, 2 deletions
diff --git a/src/config/ChangeLog b/src/config/ChangeLog
index 28a2056cd6..eebe6b33e1 100644
--- a/src/config/ChangeLog
+++ b/src/config/ChangeLog
@@ -1,3 +1,9 @@
+Sat Mar 1 14:33:21 1997 Tom Yu <tlyu@mit.edu>
+
+ * libobj.in: Change .c.so and .c.po rules to work better with
+ compilers that insist that $(CC) -fpic -c foo.c -o foo.so is
+ wrong; basically, cheat and do -o foo.so.o, etc.
+
Thu Feb 27 17:40:51 1997 Tom Yu <tlyu@mit.edu>
* pre.in: Add recursion hooks for distclean.
diff --git a/src/config/libobj.in b/src/config/libobj.in
index e53045d102..e2cf59572d 100644
--- a/src/config/libobj.in
+++ b/src/config/libobj.in
@@ -31,9 +31,11 @@ PROFFLAGS=@PROFFLAGS@
.c.o:
$(CC) $(CFLAGS) -c $<
.c.so:
- $(CC) $(PICFLAGS) $(CFLAGS) -c $< -o $*.so
+ $(CC) $(PICFLAGS) $(CFLAGS) -c $< -o $*.so.o && \
+ $(MV) $*.so.o $*.so
.c.po:
- $(CC) $(PROFFLAGS) $(CFLAGS) -c $< -o $*.po
+ $(CC) $(PROFFLAGS) $(CFLAGS) -c $< -o $*.po.o && \
+ $(MV) $*.po.o $*.po
# rules to generate object file lists