Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2018 20:34:15 +0800
From:      Ben Woods <woodsb02@gmail.com>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        Ben Woods <woodsb02@freebsd.org>,  "ports-committers@FreeBSD.org" <ports-committers@freebsd.org>, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r457666 - in head/science/InsightToolkit: . files
Message-ID:  <CAOc73CDrYSngFkM%2B0K7RrA1ACTdigot8RnmhyUrEL8X=Dm-bDQ@mail.gmail.com>
In-Reply-To: <bmif-sdmw-wny@FreeBSD.org>
References:  <201712310315.vBV3Fir3091086@repo.freebsd.org> <bmif-sdmw-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 31 December 2017 at 12:52, Jan Beich <jbeich@freebsd.org> wrote:

> Ben Woods <woodsb02@FreeBSD.org> writes:
>
> > Added: head/science/InsightToolkit/files/patch-Modules_
> ThirdParty_MINC_src_libminc_CMakeLists.txt
> > ============================================================
> ==================
> >
> > --- /dev/null 00:00:00 1970   (empty, because file is newly added)
> > +++ head/science/InsightToolkit/files/patch-Modules_
> ThirdParty_MINC_src_libminc_CMakeLists.txt        Sun Dec 31 03:15:44
> 2017        (r457666)
> > @@ -0,0 +1,27 @@
> > +--- Modules/ThirdParty/MINC/src/libminc/CMakeLists.txt.orig
> 2017-12-29 06:00:13 UTC
> > ++++ Modules/ThirdParty/MINC/src/libminc/CMakeLists.txt
> > +@@ -387,8 +387,8 @@ SET(LIBMINC_LIBRARIES ${LIBMINC_LIBRARY}
> ${HDF5_LIBRAR
> > + SET(LIBMINC_STATIC_LIBRARIES ${LIBMINC_LIBRARY_STATIC}
> ${HDF5_LIBRARIES} ${NIFTI_LIBRARIES} ${ZLIB_LIBRARY})
> > +
> > + IF(UNIX)
> > +-  SET(LIBMINC_LIBRARIES ${LIBMINC_LIBRARIES} m dl ${RT_LIBRARY})
> > +-  SET(LIBMINC_STATIC_LIBRARIES ${LIBMINC_STATIC_LIBRARIES} m dl
> ${RT_LIBRARY})
> > ++  SET(LIBMINC_LIBRARIES ${LIBMINC_LIBRARIES} m ${RT_LIBRARY})
> > ++  SET(LIBMINC_STATIC_LIBRARIES ${LIBMINC_STATIC_LIBRARIES} m
> ${RT_LIBRARY})
> > + ENDIF(UNIX)
> > +
> > + SET(minc_LIB_SRCS ${minc2_LIB_SRCS} ${minc_common_SRCS})
> > +@@ -425,11 +425,11 @@ ENDIF(NOT LIBMINC_USE_SYSTEM_NIFTI  AND NOT
> LIBMINC_EX
> > + #EXPORT(TARGETS ${LIBMINC_LIBRARY} FILE "${LIBMINC_EXPORTED_TARGETS}.
> cmake")
> > +
> > + IF(UNIX)
> > +-  TARGET_LINK_LIBRARIES(${LIBMINC_LIBRARY}   m dl )
> > ++  TARGET_LINK_LIBRARIES(${LIBMINC_LIBRARY}   m )
> > +
> > +   IF(LIBMINC_BUILD_SHARED_LIBS)
> > +     ADD_LIBRARY(${LIBMINC_LIBRARY_STATIC} STATIC ${minc_LIB_SRCS}
> ${minc_HEADERS} ${volume_io_LIB_SRCS} ${volume_io_HEADERS} )
> > +-    TARGET_LINK_LIBRARIES(${LIBMINC_LIBRARY_STATIC} ${HDF5_LIBRARY}
> ${NIFTI_LIBRARIES} ${ZLIB_LIBRARY} ${RT_LIBRARY} m dl )
> > ++    TARGET_LINK_LIBRARIES(${LIBMINC_LIBRARY_STATIC} ${HDF5_LIBRARY}
> ${NIFTI_LIBRARIES} ${ZLIB_LIBRARY} ${RT_LIBRARY} m )
> > +     IF(LIBMINC_MINC1_SUPPORT)
> > +       TARGET_LINK_LIBRARIES(${LIBMINC_LIBRARY} ${NETCDF_LIBRARY})
> > +     ENDIF(LIBMINC_MINC1_SUPPORT)
>
> Maybe convert to ${CMAKE_DL_LIBS} instead. It expands to "" on FreeBSD
> and "dl" on Linux.
>


Thanks for the head up. Fixed in 457958 and merged to 2018Q1.

Cheers,
Ben

--
From: Benjamin Woods
woodsb02@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOc73CDrYSngFkM%2B0K7RrA1ACTdigot8RnmhyUrEL8X=Dm-bDQ>