Is there a way to add a dynamic library to every link with GHC automatically?

Stephen Paul Weber singpolyma at singpolyma.net
Wed Oct 1 00:45:00 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I'm working with my qnx-nto-arm cross-compiler again.  I still have the 
issue where I get link errors about __aeabi_memcpy and similar.  I am able 
to solve this problem by always adding -lcaps to ghc invocations.  I'm still 
not sure if that library should be required, but it does fix the problem.

So now I'm wondering if there's a way to tell my GHC build that when it is 
built for this platform it should just always link against libcaps as well 
as whatever else?

- -- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJUK06LAAoJENEcKRHOUZzekNYQAMMVMpXE1hG0UxFDvKcDzBrD
xbK5woDC/7LRhGsXNntG7PM76/vaL51KYenCrPuejYD3xAJXVZY9FifR6yx77qQg
ysqX3IZzOQXxAiGDXkkYdf/G2NRIBKhCyCZacY4eCOfRSLVLO58bNbsZI96enrSN
j4BTtWoeM/l2wGavV+5QtkDYXrPF7Lg16q1A4w3a7wPLH3YLqeql81gG1qdi55sc
nVegs1+Bnr3AzqaMr5n0p5hX0Q+OklNUGVEPRtX6Dh8q7z5MmjKgswXZbukzFUEU
wxCSmZYmuQXjYCa0aJkW5J8/2BYBNAkHwTZzZ2GyCtcigCaeaXGppBfEdHk5FHT1
YbyiAheOBJ2ZsTIYdIJEwCGT8KHlxQvruWX3y03LDzV62CX5aMqlISY7oSGY9WM6
ZclMP0mM7whScCdpX2yDsJQV2orSEaWd/9nCF+yVSq4SNpC3fQSzR/aT5PlEpdLh
dSnPvPfrDOPdWKF3mITj4P2/oDBO8+iWd6vIUWXjyHrG/iZS5tfeuN9yD8SSudFI
l9jiOTPOvOZSyVCXaVEJ0nheUteCM5yAXFN9ipQAuLA10QpH2vt/QpcJ8bvuaMN3
tS+SHr31zV29OZ5nnTaz+Cn8kXaMSSHlgyK/zUjhs2KJAw4XakdzayYS+aLV1Zpz
kcs3y8hA/EMu2lTDKYC3
=yv6N
-----END PGP SIGNATURE-----


More information about the ghc-devs mailing list