From 81b495d728ffaa3a5d5629af4a7844a06fbf21a5 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sat, 1 Mar 1997 19:35:32 +0000 Subject: [PATCH] * 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 --- src/config/ChangeLog | 6 ++++++ src/config/libobj.in | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 28a2056cd..eebe6b33e 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,9 @@ +Sat Mar 1 14:33:21 1997 Tom Yu + + * 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 * pre.in: Add recursion hooks for distclean. diff --git a/src/config/libobj.in b/src/config/libobj.in index e53045d10..e2cf59572 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 -- 2.26.2