summaryrefslogtreecommitdiff
path: root/libio/config.shared
diff options
context:
space:
mode:
Diffstat (limited to 'libio/config.shared')
-rw-r--r--libio/config.shared17
1 files changed, 10 insertions, 7 deletions
diff --git a/libio/config.shared b/libio/config.shared
index 6cda566eb7b..0c319c118a0 100644
--- a/libio/config.shared
+++ b/libio/config.shared
@@ -267,23 +267,26 @@ echo >&2 '.SUFFIXES: .o .C .cc .c'
echo >&2 'COMPILE.c = $(CC) -c $(XCFLAGS) $(CINCLUDES) $(MT_CFLAGS)'
echo >&2 '.c.o:'
if [ "${LIBDIR}" = "yes" ]; then
-echo >&2 ' test x"$(enable_shared)" != xyes ||\'
-echo >&2 ' $(COMPILE.c) $(PICFLAG) $< -o pic/$@'
+echo >&2 ' if [ x"$(PICFLAG)" != x ]; then \'
+echo >&2 ' $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \'
+echo >&2 ' else true; fi'
fi
echo >&2 ' $(COMPILE.c) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo >&2 ' @touch stamp'
echo >&2 'COMPILE.cc = $(CXX) -c $(XCXXFLAGS) $(CXXINCLUDES) $(MT_CFLAGS)'
echo >&2 '.C.o:'
if [ "${LIBDIR}" = "yes" ]; then
-echo >&2 ' test x"$(enable_shared)" != xyes ||\'
-echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@'
+echo >&2 ' if [ x"$(PICFLAG)" != x ]; then \'
+echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@; \'
+echo >&2 ' else true; fi'
fi
echo >&2 ' $(COMPILE.cc) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo >&2 ' @touch stamp'
echo >&2 '.cc.o:'
if [ "${LIBDIR}" = "yes" ]; then
-echo >&2 ' test x"$(enable_shared)" != xyes || \'
-echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@'
+echo >&2 ' if [ x"$(PICFLAG)" != x ]; then \'
+echo >&2 ' $(COMPILE.cc) $(PICFLAG) $< -o pic/$@; \'
+echo >&2 ' else true; fi'
fi
echo >&2 ' $(COMPILE.cc) $<'
[ "${TOUCH_ON_COMPILE}" = "yes" ] && echo >&2 ' @touch stamp'
@@ -299,7 +302,7 @@ fi
if [ "${LIBDIR}" = "yes" ]; then
echo >&2 ''
echo >&2 'stamp-picdir:'
- echo >&2 ' if [ x"$(enable_shared)" = xyes ] && [ ! -d pic ]; then \'
+ echo >&2 ' if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \'
echo >&2 ' mkdir pic; \'
echo >&2 ' else true; fi'
echo >&2 ' touch stamp-picdir'