summaryrefslogtreecommitdiffstats
path: root/debian/README.snapshot
blob: 53519380c660ff3e531bc4ebb856065b418c1be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Debian gcc-snapshot package
===========================

This package contains  a recent development SNAPSHOT of all files
contained in the GNU Compiler Collection (GCC).

DO NOT USE THIS SNAPSHOT FOR BUILDING DEBIAN PACKAGES!

This package will NEVER hit the testing distribution. It's used for
tracking gcc bugs submitted to the Debian BTS in recent development
versions of gcc.

To use this snapshot, you should set the following environment variables:

	LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
	PATH=/usr/lib/gcc-snapshot/bin${PATH:+:$PATH}

You might also like to use a shell script to wrap up this 
funcationality, e.g. 
 
place in /usr/local/bin/gcc-snapshot and chmod +x it 
 
----------- snip ----------
#!/bin/sh
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
PATH=/usr/lib/gcc-snapshot/bin${PATH:+:$PATH}
rpath=""
OLD_IFS="$IFS"
IFS=:
for i in $LD_RUN_PATH
do
  rpath="$rpath -Wl,-rpath -Wl,$i"
done
IFS="$OLD_IFS"
exec gcc -Wl,-rpath -Wl,/usr/lib/gcc-snapshot/lib \
         -Wl,-rpath -Wl,/usr/lib/gcc-snapshot/lib32 \
         -Wl,-rpath -Wl,/usr/lib/gcc-snapshot/libx32 $rpath "$@"
----------- snip ----------

Make the same for g++, g77, cpp, ...
 
Don't forget the quotes around the $@ or gcc will not parse it's 
command line correctly! 

Unset these variables before building Debian packages destined for an
upload to ftp-master.debian.org.