Explicitly link the shared library against libm.
Fixes build with LLD 10. From Brad
This commit is contained in:
parent
f3ac5df0c9
commit
aedb594e39
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2020/06/02 15:29:58 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2020/08/02 14:58:09 naddy Exp $
|
||||
|
||||
COMMENT = library for processing panoramic images
|
||||
DISTNAME = libpano13-2.9.19
|
||||
REVISION = 0
|
||||
REVISION = 1
|
||||
|
||||
SHARED_LIBS += pano13 3.0
|
||||
|
||||
@ -12,7 +12,7 @@ HOMEPAGE = http://panotools.sourceforge.net/
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += c jpeg png tiff z
|
||||
WANTLIB += c jpeg m png tiff z
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=panotools/}
|
||||
|
||||
@ -22,4 +22,7 @@ LIB_DEPENDS = graphics/jpeg \
|
||||
graphics/png \
|
||||
graphics/tiff
|
||||
|
||||
post-extract:
|
||||
perl -pi -e 's/\r\n/\n/g' ${WRKSRC}/CMakeLists.txt
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
16
graphics/libpano13/patches/patch-CMakeLists_txt
Normal file
16
graphics/libpano13/patches/patch-CMakeLists_txt
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.1 2020/08/02 14:58:09 naddy Exp $
|
||||
|
||||
Make sure to link in libm.
|
||||
|
||||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -265,7 +265,7 @@ include_directories(${CMAKE_SOURCE_DIR})
|
||||
if(NOT WIN32)
|
||||
# Create and install shared library on non-windows
|
||||
add_library(pano13 SHARED ${pano13_hdr} ${pano13_res} ${pano13_src})
|
||||
- target_link_libraries(pano13 ${_common_libs})
|
||||
+ target_link_libraries(pano13 m ${_common_libs})
|
||||
set_target_properties(pano13 PROPERTIES VERSION "3.0.0" SOVERSION "3")
|
||||
install(TARGETS pano13 LIBRARY DESTINATION ${MYLIB} COMPONENT libraries)
|
||||
set(_pano_target pano13)
|
Loading…
Reference in New Issue
Block a user