Summary: Fix handling xlc(1)-specific options
                 Project: GNU Libtool
            Submitted by: whr
            Submitted on: Sat 23 Oct 2021 04:41:21 AM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any



The IBM XL C/C++ compiler uses the following syntax to control most of its
behavior, which is called a 'keyword option':
        -q <option>[=<value>]
Libtool however handles this only when the option argument is immediately
connected with the option ('-q') itself.

For example if I want to compile for POWER7 64-bit and optmize for code size,
I would passing:
        -q 64 -q arch=pwr7 -q optimize -q compact
But this will break Libtool, as it would expecting '-q64 -qarch=pwr7
-qoptimize -qcompact'.

The attached patch adds support of handling option '-q' with its option
argument separated from the option itself.


File Attachments:

Date: Sat 23 Oct 2021 04:41:21 AM UTC  Name: libtool-xlc-q-option.diff  Size:
640B   By: whr



Reply to this item at:


  Message sent via Savannah

Reply via email to