Call rpcgen program which -Y parameter so that it can find the preprocessor.
authordrepper <drepper>
Thu, 10 Dec 1998 10:19:42 +0000 (10:19 +0000)
committerdrepper <drepper>
Thu, 10 Dec 1998 10:19:42 +0000 (10:19 +0000)
sunrpc/Makefile

index 5ab9fb5..a8003d9 100644 (file)
@@ -149,7 +149,7 @@ $(rpcsvc:%.x=$(objpfx)rpcsvc/%.h): $(objpfx)rpcsvc/%.h: $(objpfx)rpcsvc/%.stmp
 $(objpfx)rpcsvc/%.stmp: rpcsvc/%.x $(objpfx)rpcgen
        $(make-target-directory)
        -@rm -f ${@:stmp=T} $@
-       $(rpcgen-cmd) -h $< -o ${@:stmp=T}
+       $(rpcgen-cmd) -Y `$(CC) -print-file-name=.` -h $< -o ${@:stmp=T}
        $(move-if-change) $(@:stmp=T) $(@:stmp=h)
        touch $@
 
@@ -158,7 +158,7 @@ $(rpcsvc:%.x=$(objpfx)x%.c): $(objpfx)x%.c: $(objpfx)x%.stmp
        @:
 $(objpfx)x%.stmp: rpcsvc/%.x $(objpfx)rpcgen
        -@rm -f ${@:stmp=T} $@
-       $(rpcgen-cmd) -c $< -o ${@:stmp=T}
+       $(rpcgen-cmd) -Y `$(CC) -print-file-name=.` -c $< -o ${@:stmp=T}
        $(move-if-change) $(@:stmp=T) $(@:stmp=c)
        touch $@