diff --git a/Makefile.common b/Makefile.common index 38a4e66cf6a..f7cbf277007 100644 --- a/Makefile.common +++ b/Makefile.common @@ -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 diff --git a/Makefile.rules b/Makefile.rules index 38a4e66cf6a..f7cbf277007 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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