aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen/configure24
1 files changed, 16 insertions, 8 deletions
diff --git a/autogen/configure b/autogen/configure
index 8483168848a..1f304212838 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -8057,14 +8057,9 @@ case $opsys in
8057 LIB_STANDARD=-lc 8057 LIB_STANDARD=-lc
8058 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' 8058 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8059 ;; 8059 ;;
8060 netbsd | openbsd ) 8060 netbsd | openbsd )
8061 if test -f $CRT_DIR/crti.o; then 8061 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8062 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' 8062 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8063 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8064 else
8065 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8066 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8067 fi
8068 ;; 8063 ;;
8069esac 8064esac
8070 8065
@@ -8163,6 +8158,19 @@ fi # crt_files != ""
8163 8158
8164 8159
8165 8160
8161case $opsys in
8162 netbsd | openbsd )
8163 if test -f $CRT_DIR/crti.o; then
8164
8165 test -f $CRT_DIR/crtn.o || \
8166 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8167
8168 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8169 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8170 fi
8171 ;;
8172esac
8173
8166 8174
8167 8175
8168 8176