make_gnv_curl_install.sh 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # File: make_gnv_curl_install.sh
  2. #
  3. # $Id$
  4. #
  5. # Set up and run the make script for Curl.
  6. #
  7. # This makes the library, the curl binary and attempts an install.
  8. # A search list should be set up for GNU (GNV$GNU).
  9. #
  10. # Copyright 2013 - 2022, John Malmberg
  11. #
  12. # Permission to use, copy, modify, and/or distribute this software for any
  13. # purpose with or without fee is hereby granted, provided that the above
  14. # copyright notice and this permission notice appear in all copies.
  15. #
  16. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  17. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  18. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  19. # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  20. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  21. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  22. # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  23. #
  24. # SPDX-License-Identifier: ISC
  25. #
  26. # 06-Jun-2009 J. Malmberg
  27. #==========================================================================
  28. #
  29. #
  30. # Needed VMS build setups for GNV.
  31. export GNV_OPT_DIR=.
  32. export GNV_CC_QUALIFIERS=/DEBUG/OPTIMIZE/STANDARD=RELAXED\
  33. /float=ieee_float/ieee_mode=denorm_results
  34. export GNV_CXX_QUALIFIERS=/DEBUG/OPTIMIZE/float=ieee/ieee_mode=denorm_results
  35. export GNV_CC_NO_INC_PRIMARY=1
  36. #
  37. #
  38. # POSIX exit mode is needed for Unix shells.
  39. export GNV_CC_MAIN_POSIX_EXIT=1
  40. make
  41. cd ../..
  42. # adjust the libcurl.pc file, GNV currently ignores the Lib: line.
  43. # but is noisy about it, so we just remove it.
  44. sed -e 's/^Libs:/#Libs:/g' libcurl.pc > libcurl.pc_new
  45. rm libcurl.pc
  46. mv libcurl.pc_new libcurl.pc
  47. make install