You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.1 KiB
26 lines
1.1 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../bglibs/bg-config.in |
|
# Copyright (C) 2008 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
# adjust conf-cc and conf-ld files for using the cross-compiler |
|
pkg_bg_crosscc() { |
|
sed -i -e "s,gcc,$CC,g" conf-cc |
|
sed -i -e "s,gcc,$CC,g" conf-ld |
|
echo "$AR" > conf-ar |
|
echo "$RANLIB" > conf-ranlib |
|
echo "$root/usr/bin/libtool" > conf-libtool |
|
# use the native bg-installer and crc-gentab we built at stage 0 |
|
echo "$root/TOOLCHAIN/tools.cross/usr/bglibs/bin/bg-installer" > conf-installer |
|
echo "$root/TOOLCHAIN/tools.cross/usr/bglibs/bin/crc-gentab" > conf-crc-gentab-native |
|
} |
|
atstage cross && hook_add preconf 5 'pkg_bg_crosscc'
|
|
|