Handle whitespace in LIBRARYNAME gracefully
authorChris Lattner <sabre@nondot.org>
Mon, 16 Sep 2002 22:34:56 +0000 (22:34 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Sep 2002 22:34:56 +0000 (22:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3769 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index 38a4e66cf6a9c0315a9658a041ee86cf855058fb..f7cbf277007940dbc8ad7497bb659ac4bb22fdb0 100644 (file)
@@ -206,6 +206,8 @@ endif
 
 ifdef LIBRARYNAME
 
+LIBRARYNAME := $(strip $(LIBRARYNAME))
+
 LIBNAME_O    := $(LIBRELEASE)/lib$(LIBRARYNAME).so
 LIBNAME_G    := $(LIBDEBUG)/lib$(LIBRARYNAME).so
 LIBNAME_AO   := $(LIBRELEASE)/lib$(LIBRARYNAME).a
index 38a4e66cf6a9c0315a9658a041ee86cf855058fb..f7cbf277007940dbc8ad7497bb659ac4bb22fdb0 100644 (file)
@@ -206,6 +206,8 @@ endif
 
 ifdef LIBRARYNAME
 
+LIBRARYNAME := $(strip $(LIBRARYNAME))
+
 LIBNAME_O    := $(LIBRELEASE)/lib$(LIBRARYNAME).so
 LIBNAME_G    := $(LIBDEBUG)/lib$(LIBRARYNAME).so
 LIBNAME_AO   := $(LIBRELEASE)/lib$(LIBRARYNAME).a