blob: 524335743f3224feac702440f30c29dca7c55691 (
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
47
48
49
50
|
#! /usr/bin/env bash
# file : build/ld/configure-lib
# copyright : Copyright (c) 2004-2012 Code Synthesis Tools CC
# license : GNU GPL v2; see accompanying LICENSE file
# $1 out file
#
# bld_root - build root
# project_name - project name
#
source $bld_root/dialog.bash
$echo
$echo
$echo "configuring '$project_name'"
$echo
$echo
$echo
$echo "Please select the default library type:"
$echo
$echo "(1) archive"
$echo "(2) shared object"
$echo
type=`read_option "archive shared" "shared"`
if [ "$type" == "archive" ]; then
$echo
$echo "Please enter the archiver (ar) binary you would like to use."
$echo
ar=`read_path --command ar`
$echo
$echo "Please enter the indexer (ranlib) binary you would like to use."
$echo
ranlib=`read_path --command ranlib`
fi
echo "ld_lib_type := $type" > $1
if [ "$type" == "archive" ]; then
echo "ld_lib_ar := $ar" >> $1
echo "ld_lib_ranlib := $ranlib" >> $1
fi
|