diff -Nru julia-1.0.3+dfsg/debian/changelog julia-1.0.3+dfsg/debian/changelog --- julia-1.0.3+dfsg/debian/changelog 2019-01-22 20:19:55.000000000 +0000 +++ julia-1.0.3+dfsg/debian/changelog 2019-03-02 23:41:50.000000000 +0000 @@ -1,3 +1,10 @@ +julia (1.0.3+dfsg-4+rpi1) buster-staging; urgency=medium + + * Set julia target option for raspbian. + * Build with -latomic + + -- Peter Michael Green Sat, 02 Mar 2019 23:41:50 +0000 + julia (1.0.3+dfsg-4) unstable; urgency=medium [ Mo Zhou ] diff -Nru julia-1.0.3+dfsg/debian/patches/add-libatomic.patch julia-1.0.3+dfsg/debian/patches/add-libatomic.patch --- julia-1.0.3+dfsg/debian/patches/add-libatomic.patch 1970-01-01 00:00:00.000000000 +0000 +++ julia-1.0.3+dfsg/debian/patches/add-libatomic.patch 2019-03-02 23:41:50.000000000 +0000 @@ -0,0 +1,15 @@ +Description: Build with -latomic +Author: Peter Michael Green +Last-Update: 2019-03-03 + +--- julia-1.0.3+dfsg.orig/Make.inc ++++ julia-1.0.3+dfsg/Make.inc +@@ -986,7 +986,7 @@ else ifneq ($(USEMSVC), 1) + endif + + ifeq ($(OS), Linux) +-OSLIBS += -Wl,--no-as-needed -ldl -lrt -lpthread -Wl,--export-dynamic,--as-needed,--no-whole-archive $(LIBUNWIND) ++OSLIBS += -Wl,--no-as-needed -ldl -lrt -lpthread -Wl,--export-dynamic,--as-needed,--no-whole-archive $(LIBUNWIND) -latomic + # Detect if ifunc is supported + IFUNC_DETECT_SRC := 'void (*f0(void))(void) { return (void(*)(void))0L; }; void f(void) __attribute__((ifunc("f0")));' + ifeq (supported, $(shell echo $(IFUNC_DETECT_SRC) | $(CC) -Werror -x c - -S -o /dev/null > /dev/null 2>&1 && echo supported)) diff -Nru julia-1.0.3+dfsg/debian/patches/series julia-1.0.3+dfsg/debian/patches/series --- julia-1.0.3+dfsg/debian/patches/series 2019-01-22 20:19:55.000000000 +0000 +++ julia-1.0.3+dfsg/debian/patches/series 2019-03-02 23:41:50.000000000 +0000 @@ -29,3 +29,4 @@ # This patch is for embedded sources. Already pre-applied. # privacy-breach.patch # doc-silent.patch +add-libatomic.patch diff -Nru julia-1.0.3+dfsg/debian/rules julia-1.0.3+dfsg/debian/rules --- julia-1.0.3+dfsg/debian/rules 2019-01-22 12:15:22.000000000 +0000 +++ julia-1.0.3+dfsg/debian/rules 2019-03-02 23:41:50.000000000 +0000 @@ -58,7 +58,7 @@ COMMON_FLAGS += MARCH=pentium4 \ JULIA_CPU_TARGET="pentium4;sandybridge,-xsaveopt,clone_all" else ifneq (,$(filter $(DEB_HOST_ARCH),armhf)) -COMMON_FLAGS += JULIA_CPU_TARGET="armv7-a;armv7-a,neon;armv7-a,neon,vfp4" +COMMON_FLAGS += JULIA_CPU_TARGET="arm1176jzf-s" else ifneq (,$(filter $(DEB_HOST_ARCH),ppc64el)) COMMON_FLAGS += JULIA_CPU_TARGET="pwr8" else