From: Tom Yu Date: Sat, 1 Mar 1997 19:35:32 +0000 (+0000) Subject: * libobj.in: Change .c.so and .c.po rules to work better with X-Git-Tag: krb5-1.1-beta1~1202 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=81b495d728ffaa3a5d5629af4a7844a06fbf21a5;p=krb5.git * 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 --- 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