init commit
This commit is contained in:
21
configure
vendored
Executable file
21
configure
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# Minimal configure for elibc — detects target architecture
|
||||
|
||||
echo "Configuring elibc..."
|
||||
|
||||
# Detect architecture
|
||||
case "$(uname -m)" in
|
||||
x86_64|amd64)
|
||||
ARCH=x86_64
|
||||
;;
|
||||
aarch64|arm64)
|
||||
ARCH=aarch64
|
||||
;;
|
||||
*)
|
||||
echo "Warning: unknown arch $(uname -m), falling back to x86_64"
|
||||
ARCH=x86_64
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "ARCH := $ARCH" > config.mak
|
||||
echo "Configured for $ARCH"
|
||||
Reference in New Issue
Block a user