summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2012-08-01 08:59:31 +0000
committerUlrich Müller <ulm@gentoo.org>2012-08-01 08:59:31 +0000
commit375724510ebee90bfb81e84a58a12745b658c3b0 (patch)
tree649121e6e70cd135b0b0b131adf0e94b500e908a
parentAdd reference to upstream bug report. (diff)
downloademacs-patches-375724510ebee90bfb81e84a58a12745b658c3b0.tar.gz
emacs-patches-375724510ebee90bfb81e84a58a12745b658c3b0.tar.bz2
emacs-patches-375724510ebee90bfb81e84a58a12745b658c3b0.zip
Backport FreeBSD patch from Emacs 24.emacs-23.4-patches-6
-rw-r--r--emacs/23.4/12_all_freebsd.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs/23.4/12_all_freebsd.patch b/emacs/23.4/12_all_freebsd.patch
new file mode 100644
index 0000000..82b09d2
--- /dev/null
+++ b/emacs/23.4/12_all_freebsd.patch
@@ -0,0 +1,17 @@
+Fix linking on FreeBSD.
+http://debbugs.gnu.org/12047
+
+--- emacs-23.4-orig/src/s/freebsd.h
++++ emacs-23.4/src/s/freebsd.h
+@@ -76,9 +76,9 @@
+ there, contrary to what a stock GCC would do. */
+
+ #define LD_SWITCH_SYSTEM -L/usr/local/lib
+-#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
++#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
+ #define UNEXEC unexelf.o
+-#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
++#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
+ #undef LIB_GCC
+ #define LIB_GCC
+