File make changed (mode: 100755) (index 462c241..017403a) |
... |
... |
CMDLINE_SET=" |
127 |
127 |
$PATHS_LIST |
$PATHS_LIST |
128 |
128 |
slib_cc |
slib_cc |
129 |
129 |
slib_ccld |
slib_ccld |
|
130 |
|
alib_ar |
130 |
131 |
disable-glib |
disable-glib |
131 |
132 |
" |
" |
132 |
133 |
|
|
|
... |
... |
pkg_config_sysroot='' |
138 |
139 |
|
|
139 |
140 |
#command lin set defaults |
#command lin set defaults |
140 |
141 |
#for your information: harbuzz C API is shit when enabling c90 pedantic compilation |
#for your information: harbuzz C API is shit when enabling c90 pedantic compilation |
141 |
|
slib_cc_default='gcc -Wall -Wextra -Wno-missing-field-initializers -c -fpic -O0 -std=c90' |
|
|
142 |
|
slib_cc_default='gcc -Wall -Wextra -Wno-missing-field-initializers -c -fPIC -O2 -std=c90' |
142 |
143 |
slib_ccld_default="gcc -shared -Wl,-soname=$slib_soname" |
slib_ccld_default="gcc -shared -Wl,-soname=$slib_soname" |
|
144 |
|
alib_ar_default='ar rucs' |
143 |
145 |
ln_s_default='ln -sf' |
ln_s_default='ln -sf' |
144 |
146 |
disable_glib_default=no |
disable_glib_default=no |
145 |
147 |
|
|
146 |
148 |
set_default $PATHS_LIST |
set_default $PATHS_LIST |
147 |
|
set_default slib_cc slib_ccld disable_glib |
|
|
149 |
|
set_default alib_ar slib_cc slib_ccld disable_glib |
148 |
150 |
|
|
149 |
151 |
show_help(){ |
show_help(){ |
150 |
152 |
cat <<EOF |
cat <<EOF |
|
... |
... |
Advanced options (experts only): |
171 |
173 |
--pkg-config-sysroot=SYSROOT if you need to tell pkg-config that you cross-compile |
--pkg-config-sysroot=SYSROOT if you need to tell pkg-config that you cross-compile |
172 |
174 |
--slib-cc=CC use C compiler command line CC for shared lib object[$slib_cc_default] |
--slib-cc=CC use C compiler command line CC for shared lib object[$slib_cc_default] |
173 |
175 |
--slib-ccld=CCLD use linker command line LD for shared lib [$slib_ccld_default] |
--slib-ccld=CCLD use linker command line LD for shared lib [$slib_ccld_default] |
|
176 |
|
--alib-ar=AR use archive command line AR to create the static library archive [$alib_ar_default] |
174 |
177 |
EOF |
EOF |
175 |
178 |
exit 0 |
exit 0 |
176 |
179 |
} |
} |
|
... |
... |
$slib_ccld -o "fake_root/$e_libdir/$slib_file_name" $objs |
257 |
260 |
ln -sf "$slib_file_name" "fake_root/$e_libdir/$slib_soname" |
ln -sf "$slib_file_name" "fake_root/$e_libdir/$slib_soname" |
258 |
261 |
ln -sf "$slib_soname" "fake_root/$e_libdir/libharfbuzz.so" |
ln -sf "$slib_soname" "fake_root/$e_libdir/libharfbuzz.so" |
259 |
262 |
|
|
|
263 |
|
# create the library archive |
|
264 |
|
echo "ALIB_AR libharfbuzz.a" |
|
265 |
|
$alib_ar fake_root$e_libdir/libharfbuzz.a $objs |
|
266 |
|
|
260 |
267 |
mkdir -p "fake_root/$e_libdir/pkgconfig" |
mkdir -p "fake_root/$e_libdir/pkgconfig" |
261 |
268 |
cp -f harfbuzz.pc fake_root/$e_libdir/pkgconfig/harfbuzz.pc |
cp -f harfbuzz.pc fake_root/$e_libdir/pkgconfig/harfbuzz.pc |
262 |
269 |
|
|