1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

MFH: r545302

deskutils/terminal-image-viewer: fix build on GCC architectures

-lstdc++fs is necessary for GCC:
/usr/local/bin/ld: tiv.cpp:(.text.startup+0x19cc): undefined reference to `std::experimental::filesystem::v1::__cxx11::directory_iterator::operator++()'

Approved by:	portmgr (fix build blanket)
This commit is contained in:
Piotr Kubaj 2020-08-19 10:38:39 +00:00
parent 93286c0b32
commit 49b609a5c6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=545303
3 changed files with 16 additions and 12 deletions

View File

@ -22,8 +22,10 @@ WRKSRC_SUBDIR= src/main/cpp
PLIST_FILES= bin/tiv
.if exists(/usr/include/c++/v1) && !exists(/usr/include/c++/v1/filesystem)
BROKEN= STL feature 'filesystem' isn't available # '
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == clang
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -0,0 +1,11 @@
--- Makefile.orig 2019-10-21 19:12:09 UTC
+++ Makefile
@@ -14,7 +14,7 @@ bindir ?= $(exec_prefix)/bin
override CXXFLAGS += -std=c++17 -Wall -fexceptions
override LDFLAGS += -pthread
-override LDLIBS += -lstdc++fs
+#override LDLIBS += -lstdc++fs
all: $(PROGNAME)

View File

@ -9,12 +9,3 @@
# https://www.gnu.org/prep/standards/html_node/Directory-Variables.html#Directory-Variables
prefix ?= /usr/local
@@ -14,7 +14,7 @@ bindir ?= $(exec_prefix)/bin
override CXXFLAGS += -std=c++17 -Wall -fexceptions
override LDFLAGS += -pthread
-override LDLIBS += -lstdc++fs
+#override LDLIBS += -lstdc++fs
all: $(PROGNAME)