Skip to content

Commit

Permalink
Ubuntu fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mafik authored Jun 21, 2024
1 parent 6318360 commit 14d2a8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/glibc.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
'--enable-bind-now',
f'--host={TRIPLE}',
'--disable-werror',
'--disable-mathvec'
'--disable-mathvec',
'--without-selinux'
]

BAD_CFLAGS = ['-fcolor-diagnostics', '-flto', '-Wno-vla-extension', '--gcc-toolchain']
Expand Down Expand Up @@ -148,7 +149,8 @@ def configure_gcc(prefix=PREFIX, gcc_objdir=GCC_OBJDIR):
'/usr/local/lib64',
'/usr/lib',
'/usr/local/lib',
'/usr/lib/gcc/x86_64-pc-linux-gnu/13/'
'/usr/lib/gcc/x86_64-pc-linux-gnu/13/',
'/usr/lib/x86_64-linux-gnu/'
]
LDFLAGS = ' '.join(f'-Wl,--rpath={x}' for x in rpaths)
LDFLAGS += f' -Wl,--dynamic-linker={prefix}/lib/ld-linux-x86-64.so.2'
Expand Down

0 comments on commit 14d2a8b

Please sign in to comment.