From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Pragma linking? |
Date: | 2006-05-08 17:34:25 |
Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCEA0F976@algol.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
When working through my cleanup of the vc++ build scripts, I came across
a handy feature. I originally thought it'd cut down the size of my
scripts, and it does - but not very much. However, it might be handy
elsewhere. I have no idea if this feature is available for other
platforms/compilers.
For VC++ you can add a #pragma directive to the header files to direct
the compiler/linker to link with a specific library. This could be used
to automatically link with libpq whenever libpq-fe.h is brought in, and
similar things for the backend (links to postgres.exe) and ecpg.
(Naturally, there'd be a #define you can set to have it *not* do this,
for special cases). That would make it even easier to build client and
server projects - if you use MSVC++.
What do you think? If it's good, I can incorporate it in the next
version of the VC++ patch.
//Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Jim C. Nasby | 2006-05-08 17:38:12 | Re: performance question (something to do w/ parameterized stmts?, wrong index types?) |
Previous Message | Thomas Hallgren | 2006-05-08 17:31:14 | Re: Number of dimensions of an array parameter |