Opened 15 months ago

Last modified 7 months ago

#66855 new defect

emacs @28.2_1 uses on macOS Monterey a deprecated ld switch: -no_pie

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: monterey intel Cc: dports@…, kirill@…, cooljeanius (Eric Gallager)
Port: emacs

Description

When building GNU Emacs 28.2 on macOS Monterey, Version 12.6.3, I get ten times this complaint:

ld: warning: -no_pie is deprecated when targeting new OS versions

Can't it be switched off? Where does it come from?

Portfile has a strange construct:

 77 platform darwin {
 78     post-patch {
 79         # Leopard's Xcode 3.1.x ld(1) man page claims -no_pie is supported, but it's not
 80         if {${os.major} < 9} {
 81             reinplace "s:-fno-pie::" ${worksrcpath}/configure
 82         } elseif {${os.major} > 10} {
 83             configure.ldflags-append -Wl,-no_pie
 84         }
 85         # Without this flag, there are more than 90000 warnings if the
 86         # system's `clang` compiler is used, increasing the log file
 87         # size by a factor of 200, see
 88         # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56736
 89         if {${os.major} >= 11 || ${os.major} <= 12} {
 90             configure.cflags-append -Wno-attributes
 91         }
 92     }
 93 }

Line #89: in reality os.major can be >= 11 AND <= 12 – exactly then when it is 12.

Change History (2)

comment:1 Changed 15 months ago by ballapete (Peter "Pete" Dyballa)

config.log contains 227 times that ld warning.

comment:2 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.