[Pkg-voip-commits] [libre] 01/02: Add support for building on Hurd and kFreeBSD
Vasudev Sathish Kamath
vasudev at moszumanska.debian.org
Wed Dec 28 12:19:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
vasudev pushed a commit to branch master
in repository libre.
commit 96288eab0c6efd2b999b8a8a902951cefabc2cd2
Author: Vasudev Kamath <vasudev at copyninja.info>
Date: Wed Dec 28 17:42:18 2016 +0530
Add support for building on Hurd and kFreeBSD
---
debian/patches/1001_support_hurd_kfreebsd.patch | 40 +++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 41 insertions(+)
diff --git a/debian/patches/1001_support_hurd_kfreebsd.patch b/debian/patches/1001_support_hurd_kfreebsd.patch
new file mode 100644
index 0000000..4f1bdc3
--- /dev/null
+++ b/debian/patches/1001_support_hurd_kfreebsd.patch
@@ -0,0 +1,40 @@
+Description: Add build support for GNU/Hurd and GNU/kFreeBSD
+Author: Vasudev Kamath <vasudev at copyninja.info>
+ Last-Update: 2016-12-28
+
+--- libre-0.5.0.orig/mk/re.mk
++++ libre-0.5.0/mk/re.mk
+@@ -239,6 +239,16 @@ ifeq ($(OS),linux)
+ AR := ar
+ AFLAGS := cru
+ endif
++ifeq ($(OS),gnu)
++ CFLAGS += -fPIC -DGNU
++ LIBS += -ldl
++ LFLAGS += -fPIC
++ SH_LFLAGS += -shared
++ MOD_LFLAGS +=
++ APP_LFLAGS += -rdynamic
++ AR := ar
++ AFLAGS := cru
++endif
+ ifeq ($(OS),darwin)
+ CFLAGS += -fPIC -dynamic -DDARWIN
+ ifneq (,$(findstring Apple, $(CC_LONGVER)))
+@@ -276,6 +286,16 @@ ifeq ($(OS),freebsd)
+ CFLAGS += -fPIC -DFREEBSD
+ LFLAGS += -fPIC
+ SH_LFLAGS += -shared
++ MOD_LFLAGS +=
++ APP_LFLAGS += -rdynamic
++ AR := ar
++ AFLAGS := cru
++ HAVE_KQUEUE := 1
++endif
++ifeq ($(OS),gnu/kfreebsd)
++ CFLAGS += -fPIC -DFREEBSD
++ LFLAGS += -fPIC
++ SH_LFLAGS += -shared
+ MOD_LFLAGS +=
+ APP_LFLAGS += -rdynamic
+ AR := ar
diff --git a/debian/patches/series b/debian/patches/series
index d19bb6b..b2d5e9b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-get-correct-multiarch-triplet.patch
+1001_support_hurd_kfreebsd.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/libre.git
More information about the Pkg-voip-commits
mailing list