--- slang-2.3.3/autoconf/aclocal.m4.orig 2022-08-05 12:33:27.000000000 +0000 +++ slang-2.3.3/autoconf/aclocal.m4 2022-11-01 18:10:00.278817550 +0000 @@ -633,7 +633,7 @@ ELF_CFLAGS="\$(CFLAGS) \$(CPPFLAGS) -fPIC" ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-ztext -Wl,-h,\$(ELFLIB_MAJOR)" ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" - CC_SHARED_FLAGS="-G -fPIC" + CC_SHARED_FLAGS="-shared -fPIC" CC_SHARED="\$(CC) $CC_SHARED_FLAGS \$(CFLAGS) \$(CPPFLAGS)" else DYNAMIC_LINK_FLAGS=""