pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/49566: devel/libftdi1 build failure



The following reply was made to PR pkg/49566; it has been noted by GNATS.

From: =?utf-8?Q?Edgar_Fu=C3=9F?= <ef%math.uni-bonn.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/49566: devel/libftdi1 build failure
Date: Tue, 13 Jan 2015 23:19:53 +0100

 To actually produce a usable libftdi1.dylib on OS X, you need two magic =
 additions to the cmake invocation in Makefile:
 
  	-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=3DFALSE \
 +	-DCMAKE_MACOSX_RPATH=3DON \
 +	-DCMAKE_INSTALL_NAME_DIR=3D${PREFIX}/lib \
  	-DLIBUSB_INCLUDE_DIR=3D${PREFIX}/include/libusb-1.0 \
 
 (I haven=E2=80=99t tried whether these OS X specific arguments will emit =
 warnings or errors on non-OSX-platforms)
 Without these, you will get a warning about policy CMP0042 not being set =
 and the generated libftdi1.dylib will not have /usr/pkg/lib baked in =
 (due to that directory not present in the argument to the C compiler=E2=80=
 =99s -install_name option), and thus, a program linked against libftdi1 =
 (e.g. avrdude) will reference libftdi1.2.dylib, not =
 /usr/pkg/lib/libftdi1.2.dylib and thus not run.=
 


Home | Main Index | Thread Index | Old Index