blob: c982c4a12cb0ddb77eca8dea13c3dc4fbaa00e18 (
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
|
link.sh will build the statically linked version, plus
strip gzexe and patch prescript into it.
This command will statically link all the gnome shit into the installer, but leave the rpm, db, z, bz and
generic X crap as shared libs
gcc -static -o nautilus-installer main.o support.o interface.o callbacks.o installer.o \
/gnome-source/nautilus/components/services/trilobite/libtrilobite/helixcode-utils.o \
/gnome-source/nautilus/components/services/install/lib/libinstall.a \
-L/gnome/lib \
-lgnomeui \
-lgnome \
-lart_lgpl \
-lgdk_imlib \
-lgtk \
-lgdk \
-lgmodule \
-lglib \
-L/usr/X11R6/lib -ldl -lXext -lX11 -lm -lSM -lICE \
/usr/lib/libesd.a \
/usr/lib/libaudiofile.a \
-lghttp \
-L/usr/lib -lrpm -lz -ldb1 \
/usr/lib/libpopt.a \
-lxml
The gzexed file should have skip=22 replaced with
skip=28
if test $UID -ne 0; then
xhost + localhost
su - -c "export DISPLAY=$DISPLAY && cd $PWD && sh $0"
xhost - localhost
exit
fi
this causes it not to require root access before running
|