1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../gcl/gcl.conf
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2004 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 # gcl doesn't like to be stripped and some optimization settings
17 # (esp. gcc-3.4) may also cause problems, so remove all that
18 for each in `env | grep _WRAPPER_ | grep CC | sed 's,=.*,,'`; do
19 var_remove $each ' ' '-s'
22 # selecting bfd target:
25 for i in dlopen statsysbfd dynsysbfd locbfd custreloc; do
26 if [ "$gclbfd" = "$i" ]; then
27 var_append confopt ' ' "--enable-$i"
29 var_append confopt ' ' "--disable-$i"
32 var_append confopt ' ' "--enable-ansi"
34 # fixing locations, for 32 and 64bits architectures
37 sed -i -e 's,$(DESTDIR)$(prefix)/lib,'$root$libdir',g' \
38 -e 's,INSTALL_LIB_DIR=$(prefix)/lib,INSTALL_LIB_DIR='$root$libdir',g' makefile
42 hook_add premake 5 "gcl_main"