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