-----Original Message----- From: Dmitry Karasik Sent: Sunday, May 29, 2016 5:58 AM To: sisyph...@optusnet.com.au Cc: pdl-devel@lists.sourceforge.net Subject: Re: [Pdl-devel] [OT] Prima-1.46 with perl-5.24.0 on Windows
>> It's 'gcc', but I think that when I do 'perl Makefile.PL >> LIBS="-L/lib/location -l...." it overwrites the libs that you intend to >> specify with exactly those libs that I've specified. >> So, if i don't specify '-lgomp' in my LIBS arg, then it's not present >> when needed. (I haven't verified this, btw.) > > Yes indeed, it seems that adding LIBS as arguments can only overwrite, not > append ldflags as one might want here. I don't like and don't understand > that perl feature, and therefore added EXTRA_LDFLAGS to Prima. I believe > you can safely use it for prepending your /lib/location instead. That nearly works. I initially tried "EXTRA_LDFLAGS=-LC:/lib/location" but it seems that because I use static libraries I have to link to libz - and Prima doesn't provide the '-lz' argument. So I tried "EXTRA_LDFLAGS=-LC:/lib/location -lz", but that places libz at the head of the queue, and I think it needs to be *appended* to the other end of the queue - so I still got "undefined references" to various libz symbols. It's unusual that there's a need to specify the location of the libraries as that location is specified in $Config{libpth} and perl therefore has no problem finding them. I assume it's needed only because the configure process (conducted by the Makefile.PL) is unaware of that location. It's no big deal for me - my Prima build is scripted, and it doesn't really bother me what that script contains. And things are currently working fine if I prepend '-lgomp' to the LIBS arg I give to Makefile.PL. Cheers, Rob ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel