OpenSDE Packages Database (without history before r20070)
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.

44 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gcl/gcl.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2004 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-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'
  20. done
  21. # selecting bfd target:
  22. gclbfd=locbfd
  23. for i in dlopen statsysbfd dynsysbfd locbfd custreloc; do
  24. if [ "$gclbfd" = "$i" ]; then
  25. var_append confopt ' ' "--enable-$i"
  26. else
  27. var_append confopt ' ' "--disable-$i"
  28. fi
  29. done
  30. var_append confopt ' ' "--enable-ansi"
  31. gcl_main() {
  32. sed -i -e 's,$(DESTDIR)$(prefix)/lib,'$root$libdir',g' \
  33. -i -e 's,INSTALL_LIB_DIR=$(prefix)/lib,INSTALL_LIB_DIR='$root$libdir',g' makefile
  34. }
  35. hook_add premake 5 "gcl_main"