]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
ltmain.in: Fix handling xlc(1)-specific options
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Tue, 19 Nov 2024 18:58:01 +0000 (20:58 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 20 Nov 2024 15:36:30 +0000 (17:36 +0200)
Patch supplied on Savannah by user, whr:
  https://savannah.gnu.org/patch/index.php?10126

build-aux/ltmain.in

index 8cef9e8dfbe05cc9fefa84462b8d224d417454f3..a4fa6280349756a0f42cda364cf07fe542b9c1f1 100644 (file)
@@ -5327,7 +5327,8 @@ func_mode_link ()
       # Tru64 UNIX uses -model [arg] to determine the layout of C++
       # classes, name mangling, and exception handling.
       # Darwin uses the -arch flag to determine output architecture.
-      -model|-arch|-isysroot|--sysroot)
+      # -q <option> for IBM XL C/C++ compiler.
+      -model|-arch|-isysroot|--sysroot|-q)
        func_append compiler_flags " $arg"
        func_append compile_command " $arg"
        func_append finalize_command " $arg"