Add a slash so grep doesn't return both ./crypto/bio/bss_mem.o and
authorRichard Levitte <levitte@openssl.org>
Thu, 3 Jul 2003 21:43:50 +0000 (21:43 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 3 Jul 2003 21:43:50 +0000 (21:43 +0000)
./crypto/mem.o when we're looking for mem.o.

Makefile.org

index a0b883782e13eaf10d757777ad28ee9e69361109..9120dff3a69e33644aa42100fa6b27a4fb4fa15d 100644 (file)
@@ -368,7 +368,7 @@ do_svr3-shared:
                  find . -name "*.o" -print > allobjs ; \
                  OBJS= ; export OBJS ; \
                  for obj in `ar t lib$$i.a` ; do \
-                   OBJS="$${OBJS} `grep $$obj allobjs`" ; \
+                   OBJS="$${OBJS} `grep /$$obj allobjs`" ; \
                  done ; \
                  set -x; ${CC} ${SHARED_LDFLAGS} \
                        -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
@@ -390,7 +390,7 @@ do_svr5-shared:
                  find . -name "*.o" -print > allobjs ; \
                  OBJS= ; export OBJS ; \
                  for obj in `ar t lib$$i.a` ; do \
-                   OBJS="$${OBJS} `grep $$obj allobjs`" ; \
+                   OBJS="$${OBJS} `grep /$$obj allobjs`" ; \
                  done ; \
                  set -x; ${CC} ${SHARED_LDFLAGS} \
                        $${SHARE_FLAG} -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \