about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-17 02:33:33 +0000
committerRoland McGrath <roland@gnu.org>1996-01-17 02:33:33 +0000
commit13bc775dc35e2aaa11f53ad577647bcd3e89b3d1 (patch)
treef7002bafad75c6abca03d09bdf78eeb358cbe179
parent5f3d5c2bbb4757e9cc5b30bc66b1d7555739bc4a (diff)
downloadglibc-13bc775dc35e2aaa11f53ad577647bcd3e89b3d1.tar.gz
glibc-13bc775dc35e2aaa11f53ad577647bcd3e89b3d1.tar.xz
glibc-13bc775dc35e2aaa11f53ad577647bcd3e89b3d1.zip
* sysdeps/m68k/Makefile (crypt): Don't define if building a shared
	library.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/m68k/Makefile9
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a85adf042..249eed256b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Tue Jan 16 17:37:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
 
+	* sysdeps/m68k/Makefile (crypt): Don't define if building a shared
+	library.
+
 	* csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
 	* csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
 	global.
diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile
index ea0c7d5cbb..12e9b56787 100644
--- a/sysdeps/m68k/Makefile
+++ b/sysdeps/m68k/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+# Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +20,10 @@
 # way to choose a sysdep file based on MIT vs Motorola syntax.
 # No existing m68k ports use Motorola syntax.
 
-crypt := crypt.sun3	# Use crypt/crypt.sun3.S.
+# Don't use crypt/crypt.sun3.S.  It's not pic-clean.
+ifneq (yes,$(build-shared))
+crypt := crypt.sun3
+endif
 
 # The mpn functions need this.  All existing 68k ports use MIT syntax.  If
 # a new port wants to use Motorola or Sony syntax, it can redefine this
@@ -29,4 +32,4 @@ ifndef m68k-syntax-flag
 m68k-syntax-flag = -DMIT_SYNTAX
 endif
 
-asm-CPPFLAGS := $(asm-CPPFLAGS) $(m68k-syntax-flag)
+asm-CPPFLAGS += $(m68k-syntax-flag)