AIX: Don't specify -qlanglvl=stdc99 for libuafs

Commit beff42414ae (aix-5-update-20041207) added -qlanglvl=stdc99 to
our CFLAGS for libuafs, apparently to handle __file__ (or __FILE__) in
afs_osi_pag.c.

The clang-based xlc 17.1 on AIX does not understand this argument,
which causes an error:

      CC  .../src/libuafs/afs_osi_pag.lo
    .ibm-clang: error: unknown argument: '-qlanglvl=stdc99'

afs_osi_pag.c doesn't directly use __FILE__.  Various other files in
src/afs indirectly reference __FILE__, so this probably is not needed
at all anymore. Just remove it.

Change-Id: Iae33a80dd96aef94e3be2f97590e40ffa1c6ba29
Reviewed-on: https://gerrit.openafs.org/15447
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Andrew Deason 2023-05-18 13:34:14 -05:00 committed by Michael Meffie
parent 9c4ce09091
commit 895d82bae8

View File

@ -30,7 +30,4 @@ AFS_OS_CLEAN = \
*.exp \ *.exp \
export.h export.h
# To get __file__ you need to specify the language level C99 to xlc_r
CFLAGS_afs_osi_pag.lo=-qlanglvl=stdc99
include Makefile.common include Makefile.common