## -*-makefile-*-
## Linux-specific setup for Visual Age
-## Copyright (c) 2003-2004, International Business Machines Corporation and
+## Copyright (c) 2003-2010, International Business Machines Corporation and
## others. All Rights Reserved.
## Commands to generate dependency files
SHAREDLIBCPPFLAGS = -DPIC
## Additional flags when building libraries and with threads
-LIBCPPFLAGS = -D_REENTRANT
THREADSCPPFLAGS = -D_REENTRANT
+LIBCPPFLAGS =
## Compiler switch to embed a runtime search path
-LD_RPATH= -I
+LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN
#LD_RPATH_PRE = -Wl,-rpath,
-#LD_SONAME =
+## Compiler switch to embed a library name
+# The initial tab in the next line is to prevent icu-config from reading it.
+ LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
+#SH# # We can't depend on MIDDLE_SO_TARGET being set.
+#SH# LD_SONAME=
## The type of assembly needed when pkgdata is used for generating shared libraries.
GENCCODE_ASSEMBLY=-a gcc