build-scripts/ltmain.sh
changeset 11720 9cbb45a5874f
parent 7235 80fefd4af771
child 12058 1a1133e9c7d4
equal deleted inserted replaced
11719:a4477243eb20 11720:9cbb45a5874f
   187 #   dirname:  Compute the dirname of FILE.  If nonempty,
   187 #   dirname:  Compute the dirname of FILE.  If nonempty,
   188 #             add APPEND to the result, otherwise set result
   188 #             add APPEND to the result, otherwise set result
   189 #             to NONDIR_REPLACEMENT.
   189 #             to NONDIR_REPLACEMENT.
   190 #             value returned in "$func_dirname_result"
   190 #             value returned in "$func_dirname_result"
   191 #   basename: Compute filename of FILE.
   191 #   basename: Compute filename of FILE.
   192 #             value retuned in "$func_basename_result"
   192 #             value returned in "$func_basename_result"
   193 # Implementation must be kept synchronized with func_dirname
   193 # Implementation must be kept synchronized with func_dirname
   194 # and func_basename. For efficiency, we do not delegate to
   194 # and func_basename. For efficiency, we do not delegate to
   195 # those functions but instead duplicate the functionality here.
   195 # those functions but instead duplicate the functionality here.
   196 func_dirname_and_basename ()
   196 func_dirname_and_basename ()
   197 {
   197 {
  3274 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
  3274 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
  3275 #endif
  3275 #endif
  3276 
  3276 
  3277 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  3277 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  3278 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3278 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3279 /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3279 /* DATA imports from DLLs on WIN32 can't be const, because runtime
  3280    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  3280    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  3281 # define LT_DLSYM_CONST
  3281 # define LT_DLSYM_CONST
  3282 #elif defined(__osf__)
  3282 #elif defined(__osf__)
  3283 /* This system does not cope well with relocations in const data.  */
  3283 /* This system does not cope well with relocations in const data.  */
  3284 # define LT_DLSYM_CONST
  3284 # define LT_DLSYM_CONST
  4392 	}
  4392 	}
  4393       if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
  4393       if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
  4394         {
  4394         {
  4395           /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  4395           /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  4396              namespace, but it is not one of the ones we know about and
  4396              namespace, but it is not one of the ones we know about and
  4397              have already dealt with, above (inluding dump-script), then
  4397              have already dealt with, above (including dump-script), then
  4398              report an error. Otherwise, targets might begin to believe
  4398              report an error. Otherwise, targets might begin to believe
  4399              they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  4399              they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  4400              namespace. The first time any user complains about this, we'll
  4400              namespace. The first time any user complains about this, we'll
  4401              need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  4401              need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  4402              or a configure.ac-settable value.
  4402              or a configure.ac-settable value.