Hmm... Maybe I am doing something wrong, but I couldn't get it to work.  I 
had tried to manually hack acprep to set the LDFLAGS as well with no luck.

If I run:

*$ LDFLAGS="-lpqxx -lpq" ./acprep update --debug --verbose*

I don't see those flags being passed during the linking step:

*Linking CXX executable ../ledger*
*cd /home/ubuntu/ledger/src && /usr/bin/cmake -E cmake_link_script 
CMakeFiles/ledger.dir/link.txt --verbose=1*
*/usr/bin/g++   -g    CMakeFiles/ledger.dir/main.cc.o 
CMakeFiles/ledger.dir/global.cc.o  -o ../ledger -rdynamic ../libledger.so.3 
-lmpfr -lgmp -ledit -lboost_date_time -lboost_filesystem -lboost_system 
-lboost_iostreams -lboost_regex -lboost_unit_test_framework -licuuc 
-Wl,-rpath,/home/ubuntu/ledger::::::::::::*

Let me know if I am just not understanding how to run the cmd.  Thanks for 
the help.

-James

On Friday, December 2, 2016 at 4:56:39 AM UTC-4, John Wiegley wrote:
>
> >>>>> "JP" == James Poole <[email protected] <javascript:>> writes: 
>
> JP> I would like to add the "-lpqxx -lpq" parameters to the compile/link 
> step 
> JP> so that I can pull in support for libpqxx like is mentioned here: 
> JP> https://www.tutorialspoint.com/postgresql/postgresql_c_cpp.htm 
>
> JP> Let me know what you think is the easiest way to do this. 
>
> acprep should listen to LDFLAGS, if you set it in the environment: 
>
>     LDFLAGS="-lpqxx -lpq" ./acprep <options> 
>
> -- 
> John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F 
> http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to