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

Best way to wrap gcc/g++ calls?


I am the current maintainer of apt-build.

I am looking for the best way to wrap all calls to gcc/g++. For now,
apt-build makes a diversion like this in /usr/bin:
lrwxrwxrwx  1 root root         11 Dec 31 14:27 gcc -> gcc-3.3

lrwxrwxrwx  1 root root          7 Nov 15 21:17 gcc.real -> gcc-3.3

And it installs a program called gcc.wrapper instead, which executes
gcc.real with good options:
lrwxrwxrwx  1 root root         11 Dec 31 14:27 gcc -> gcc.wrapper
-rwxr-xr-x  1 root root       4656 Dec 31 14:26 gcc.wrapper

But some programs call directly gcc-3.3 (like libc6 as I can see), or

Do you have any idea about how to divert everything correctly ?
I think I could provide a gcc-apt-build package which would do the job
by replacing the gcc one and diverting some files, but I am bot happy
with this solution.

So, I am waiting for suggestions,

Julien Danjou
.''`.  Debian developer
: :' : http://julien.danjou.info
`. `'  http://people.debian.org/~acid
  `-   9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD

Attachment: signature.asc
Description: Digital signature

Reply to: