Opened 12 years ago

Closed 12 years ago

#35896 closed defect (fixed)

herbstluftwm: clang: error: cannot use 'dependencies' output with multiple -arch options

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: herbstluftwm

Description

The universal variant fails:

clang: error: cannot use 'dependencies' output with multiple -arch options

Attachments (3)

main.log (15.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.
patch-Makefile-separate-cppflags.diff (658 bytes) - added by neverpanic (Clemens Lang) 12 years ago.
patch-config.mk-separate-cppflags.diff (778 bytes) - added by neverpanic (Clemens Lang) 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

The problem is the Makefile uses $(CFLAGS) to generate dependencies, where it should use $(CPPFLAGS), because -M only runs the preprocessor and passing compiler options (like -arch) to the preprocessor doesn't work.

The attached patches fix this (I'm uploading them for upstream, they have already been applied in r97205).

Changed 12 years ago by neverpanic (Clemens Lang)

Changed 12 years ago by neverpanic (Clemens Lang)

Note: See TracTickets for help on using tickets.