source: trunk/dports/science/hdf5-18/files/patch-tools-misc-h5cc.in.diff @ 147962

Last change on this file since 147962 was 147962, checked in by takeshi@…, 4 years ago

hdf5-18: fix h5cc/h5pcc to respect env vars and quoted args

File size: 728 bytes
  • tools/misc/h5cc.in

    old new  
    9898
    9999CC="${HDF5_CC:-$CCBASE}"
    100100CLINKER="${HDF5_CLINKER:-$CLINKERBASE}"
    101 CFLAGS="${HDF5_CFLAGS:-$CFLAGSBASE}"
    102 CPPFLAGS="${HDF5_CPPFLAGS:-$CPPFLAGSBASE}"
    103 LDFLAGS="${HDF5_LDFLAGS:-$LDFLAGSBASE}"
    104101LIBS="${HDF5_LIBS:-$LIBSBASE}"
    105102
    106103# If a static library is available, the default will be to use it.  If the only
     
    268265      ;;
    269266    *\"*)
    270267      qarg="'"$arg"'"
     268      compile_args="$compile_args $qarg"
    271269      allargs="$allargs $qarg"
    272270      ;;
    273271    *\'*)
    274272      qarg='\"'"$arg"'\"'
     273      compile_args="$compile_args $qarg"
    275274      allargs="$allargs $qarg"
    276275      ;;
    277276    *)
Note: See TracBrowser for help on using the repository browser.