about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/sysv4/solaris2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/sysv4/solaris2/Makefile')
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/Makefile b/sysdeps/unix/sysv/sysv4/solaris2/Makefile
new file mode 100644
index 0000000000..3f86c46cc8
--- /dev/null
+++ b/sysdeps/unix/sysv/sysv4/solaris2/Makefile
@@ -0,0 +1,6 @@
+# The linker supplied with Solaris looks in the current directory
+# before searching others.  Compiling the various programs that come
+# along the way (e.g., glue-ctype) will fail because it'll try to link
+# with the libc.a being *constructed* in $(objdir).  As a work-around,
+# we add this to each native-compile.
+BUILD_CFLAGS := $(BUILD_CFLAGS) -L/lib