FreeBSD Bugzilla – Attachment 176228 Details for
Bug 213768
editors/libreoffice: Fix build with lang/gcc5 on 11.0-RELEASE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
make.conf for those who want everything built with GCC 5.x
make.conf.i386 (text/plain), 5.11 KB, created by
Kenneth Salerno
on 2016-10-27 21:00:17 UTC
(
hide
)
Description:
make.conf for those who want everything built with GCC 5.x
Filename:
MIME Type:
Creator:
Kenneth Salerno
Created:
2016-10-27 21:00:17 UTC
Size:
5.11 KB
patch
obsolete
># ># global configuration ># >KPS_FLAGS = -O2 -fomit-frame-pointer -pipe >KPS_FLAGS += -fno-stack-protector -D_FORTIFY_SOURCE=0 >CFLAGS = ${KPS_FLAGS} >CFLAGS.i386 = -march=pentium-m >WITHOUT_SSP = yes > ># ># /usr/src and /usr/obj configuration ># >.if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} >COPTFLAGS = ${KPS_FLAGS} -march=pentium-m > >WITHOUT_PROFILE = yes >WITHOUT_CAPSICUM = yes >WITHOUT_TESTS = yes >WITHOUT_DEBUG_FILES = yes >MALLOC_PRODUCTION = yes >WITHOUT_CDDL = yes > ># ># ports: devel/i386-gcc, devel/i386-binutils (run build-xcc-gcc-i386.sh) ># >_OSRELEASE != uname -r >OSREL = ${_OSRELEASE:C/-.*//} >XCC = /usr/local/bin/i386-portbld-freebsd${OSREL}-gcc >XCXX = /usr/local/bin/i386-portbld-freebsd${OSREL}-g++ >XCPP = /usr/local/bin/i386-portbld-freebsd${OSREL}-cpp >CROSS_BINUTILS_PREFIX = /usr/local/bin/i386-freebsd- >WITHOUT_FORMAT_EXTENSIONS = yes >NO_WERROR = >WERROR = > ># ># Note: ># When using an external compiler (XCC), world will not automatically ># build a bootstrap cc (clang), so we will need to explicitly tell ># buildworld we want a bootstrap cc to not bomb on tblgen ># (CLANG_BOOTSTRAP), and we want to make sure we have a system compiler ># installed for base (CLANG*). ># >WITH_CLANG_BOOTSTRAP = yes >WITH_CLANG = yes >WITH_CLANG_FULL = yes >WITH_CLANG_IS_CC = yes > >MODULES_OVERRIDE = \ > geom/geom_eli crypto zlib \ > geom/geom_journal geom/geom_label \ > geom/geom_part/geom_part_mbr \ > acpi/acpi_sony cpufreq \ > sysvipc \ > ufs fdescfs tmpfs fuse msdosfs cd9660 procfs pseudofs nullfs \ > linux linux_common linprocfs linsysfs \ > agp i2c drm2/drm2 drm2/i915kms io mem \ > fdc md firmware ata/atacore ata/atapci ahci cam \ > cbb pccard cardbus exca \ > firewire \ > uart \ > mii fxp \ > sound/sound sound/driver/hda \ > mmc mmcsd sdhci \ > usb/xhci usb/uhci usb/ohci usb/ehci usb/usb usb/ukbd usb/umass \ > iwi iwifw wlan wlan_wep wlan_ccmp wlan_tkip wlan_amrr \ > if_vlan if_tun >.endif # ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} > ># ># /usr/ports and /wrkdirs/usr/ports configuration ># >.if ${.CURDIR:M*/usr/ports*} >BATCH = yes >WRKDIRPREFIX = /wrkdirs >DISABLE_VULNERABILITIES = yes >TRYBROKEN = yes > ># ># Use GCC Version lang/gcc${MYGCCSUFFIX}, if it exists and make is NOT ># executed in the following directories (because they need clang or its ># headers because the GCC C++ headers have a bug). ># >MYGCCSUFFIX = 5 >. if exists(/usr/local/bin/gcc${MYGCCSUFFIX}) && \ > ${.CURDIR:N*/usr/ports/databases/akonadi*} && \ > ${.CURDIR:N*/usr/ports/devel/boost-libs*} && \ > ${.CURDIR:N*/usr/ports/devel/libclc*} && \ > ${.CURDIR:N*/usr/ports/devel/llvm*} && \ > ${.CURDIR:N*/usr/ports/graphics/libopenraw*} && \ > ${.CURDIR:N*/usr/ports/graphics/opencv2-core*} && \ > ${.CURDIR:N*/usr/ports/lang/rust*} && \ > ${.CURDIR:N*/usr/ports/math/kmplot*} && \ > ${.CURDIR:N*/usr/ports/net/libcmis*} && \ > ${.CURDIR:N*/usr/ports/science/avogadro*} && \ > ${.CURDIR:N*/usr/ports/science/kalzium*} && \ > ${.CURDIR:N*/usr/ports/science/openbabel*} && \ > ${.CURDIR:N*/usr/ports/www/webkit2-gtk3*} >CC := gcc${MYGCCSUFFIX} >CXX := g++${MYGCCSUFFIX} >CPP := cpp${MYGCCSUFFIX} >_GCC_RUNTIME := /usr/local/lib/gcc${MYGCCSUFFIX} >CFLAGS += -Wl,-rpath=${_GCC_RUNTIME} >CXXFLAGS += -Wl,-rpath=${_GCC_RUNTIME} >LDFLAGS += -Wl,-rpath=${_GCC_RUNTIME} -L${_GCC_RUNTIME} > ># ># GCC bug: undefined reference to std::to_string, *printf, EOF, etc. etc. ># >. if ${.CURDIR:M*/usr/ports/devel/cmake*} || \ > ${.CURDIR:M*/usr/ports/devel/jsoncpp*} || \ > ${.CURDIR:M*/usr/ports/editors/libreoffice*} >CXXFLAGS += -D_GLIBCXX_USE_C99=1 >CXXFLAGS += -include stdio.h >. endif > ># ># GCC bug: undefined reference to isnan ># >. if ${.CURDIR:M*/usr/ports/astro/marble*} || \ > ${.CURDIR:M*/usr/ports/graphics/podofo*} || \ > ${.CURDIR:M*/usr/ports/print/scribus*} >CXXFLAGS += -Wno-undef -include /usr/include/math.h -include limits >CXXFLAGS += -DINT_MAX=2147483647 >. endif > ># ># GCC bug: gdevl256.c:152:5: error: ISO C90 forbids mixed declarations and code ># >. if ${.CURDIR:M*/usr/ports/print/ghostscript9-agpl-base*} >CFLAGS += -Wno-error=declaration-after-statement >. endif > ># ># GCC bugs: ># error: format '%ld' expects argument of type 'long int', but argument 4 ># has type 'time_t {aka int}' [-Werror=format=] ># ># error: format '%i' expects argument of type 'int', but argument 4 ># has type 'lun_id_t {aka long long unsigned int}' [-Werror=format=] ># >. if ${.CURDIR:M*/usr/ports/sysutils/brasero*} || \ > ${.CURDIR:M*/usr/ports/x11/gnome-desktop*} >CFLAGS += -Wno-error=format >. endif > ># ># GCC bug: undefined reference to symbol 'sqrt@@FBSD_1.0' ># >. if ${.CURDIR:M*/usr/ports/graphics/gegl*} >LDFLAGS += -lm >. endif >. endif # exists(/usr/local/bin/gcc${MYGCCSUFFIX}) > ># ># Port bug: these ports have profiling enabled (-pg) without asking ># >. if ${.CURDIR:M*/usr/ports/lang/ocaml*} || \ > ${.CURDIR:M*/usr/ports/sysutils/cdrtools*} >CFLAGS += -fno-omit-frame-pointer >. endif > ># ># Port bug: CPU capability detection broken for i386, can't use -march ># >. if ${.CURDIR:M*/usr/ports/x11-toolkits/qt5-gui*} >. undef CFLAGS.i386 >. endif >.endif # ${.CURDIR:M*/usr/ports*}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 213768
:
176138
|
176139
|
176140
|
176168
|
176169
|
176170
|
176197
|
176227
|
176228
|
176274
|
176341
|
176418