summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/rules.lib.GNU
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2013-06-06 17:07:28 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2013-06-06 17:07:28 +0000
commit845058a69c898ee9ee7d57eb058a15e8bc0f2903 (patch)
tree12b68fb3eea439f0d76bbb68d8d277cad44d4a41 /ACE/include/makeinclude/rules.lib.GNU
parentcc03ace970e62e256f9465eef058ba39ffbc2ab5 (diff)
downloadATCD-845058a69c898ee9ee7d57eb058a15e8bc0f2903.tar.gz
Thu Jun 6 17:02:06 UTC 2013 Phil Mesnier <mesnier_p@ociweb.com>
* include/makeinclude/rules.lib.GNU: The rule for generating versioned_so=2 style libraries would create names such as "-6.2.0.so" in cases where the SHLIB was reset to empty, for instance if a precondition isn't met. As an example, ACE_TkReactor should skip the build if macro tk=1 isn't set. but with versioned_so=2 the VSHLIB target was non-empty so the build was attempted. Now the VSHLIB and related targets are modified only if the source libname is not empty.
Diffstat (limited to 'ACE/include/makeinclude/rules.lib.GNU')
-rw-r--r--ACE/include/makeinclude/rules.lib.GNU8
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/include/makeinclude/rules.lib.GNU b/ACE/include/makeinclude/rules.lib.GNU
index f1269e63d52..77f6b862268 100644
--- a/ACE/include/makeinclude/rules.lib.GNU
+++ b/ACE/include/makeinclude/rules.lib.GNU
@@ -36,7 +36,7 @@ ifneq ($(versioned_so),0)
ifeq ($(SONAME),)
ifeq ($(versioned_so),1)
SONAME = $(SHLIB)$(SOVERSION)
- else
+ else
ifeq ($(versioned_so),2)
SONAME = $(patsubst %.$(SOEXT),%,$(SHLIB))$(SOVERSION).$(SOEXT)
endif
@@ -66,9 +66,9 @@ ifneq ($(versioned_so),2)
CLEANUP_VSHLIB = $(CLEANUP_VSHLIB_NO_VER:%=%$(SOVERSION))
SHLIB_WITH_VER = $(SHLIB:%=%$(SOVERSION))
else
- VSHLIB = $(patsubst %.$(SOEXT),%,$(VSHLIB_NO_VER))$(SOVERSION).$(SOEXT)
- CLEANUP_VSHLIB = $(patsubst %.$(SOEXT),%,$(CLEANUP_VSHLIB_NO_VER))$(SOVERSION).$(SOEXT)
- SHLIB_WITH_VER = $(patsubst %.$(SOEXT),%,$(SHLIB))$(SOVERSION).$(SOEXT)
+ VSHLIB = $(if $(VSHLIB_NO_VER), $(patsubst %.$(SOEXT),%,$(VSHLIB_NO_VER))$(SOVERSION).$(SOEXT))
+ CLEANUP_VSHLIB = $(if $(CLEANUP_VSHLIB_NO_VER), $(patsubst %.$(SOEXT),%,$(CLEANUP_VSHLIB_NO_VER))$(SOVERSION).$(SOEXT))
+ SHLIB_WITH_VER = $(if $(SHLIB), $(patsubst %.$(SOEXT),%,$(SHLIB))$(SOVERSION).$(SOEXT))
endif
SHLIBA ?=