fixes for solaris
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 Oct 1998 06:43:36 +0000 (06:43 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 Oct 1998 06:43:36 +0000 (06:43 +0000)
(This used to be commit 235a8463b56107d97ee5523eed41967e8ccf27b6)

source3/Makefile.in

index 43aecf2dc61e56151abb7d494ac3adc6ab81cb76..ede81c2ea91ea27567e151e4e83eaa745c9dfe50 100644 (file)
@@ -266,7 +266,8 @@ MAKEDIR = || exec false; \
        @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
          dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
        @echo Compiling $*.c with @PICFLAG@
-       @$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< -o $@ \
+       @$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< -o $*.po.o
+       @mv $*.po.o $@ \
        @MAINT@ -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp
 
 # this is for IRIX
@@ -274,7 +275,8 @@ MAKEDIR = || exec false; \
        @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
          dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
        @echo Compiling $*.c with @PICFLAG@ and -32
-       @$(CC) -32 -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< -o $@ \
+       @$(CC) -32 -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< -o $*.po32.o
+       @mv $*.po32.o $@ \
        @MAINT@ -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp
 
 bin/.dummy: