Satish Balay <[email protected]> writes:
> __SDIR__ is primarily needed by 'all-legacy'. cmake/gmake builds are
> using the full paths at compile time - so they don't need it [and are
> using empty LOCDIR]
This should take care of all-legacy:
diff --git i/conf/rules w/conf/rules
index 0fc01dc..f8b70ad 100644
--- i/conf/rules
+++ w/conf/rules
@@ -391,7 +391,7 @@ getautoconfargs:
if [ $${mypwd} != $${newpwd} ]; then \
${OMAKE} PETSC_ARCH=${PETSC_ARCH} chk_petscdir;\
fi
- ${PETSC_COMPILE_SINGLE} $<
+ ${PETSC_COMPILE_SINGLE} ${PWD}/$<
@if [ "${PETSCPORTABLE}" != "" ]; then \
${PYTHON} ${PETSC_DIR}/bin/portabilitycheck.py $*.o ; \
fi