ソースを参照

move the HAVE_SHARED/libc check down to after we source .config

Mike Frysinger 18 年 前
コミット
4b20443637
1 ファイル変更5 行追加5 行削除
  1. 5 5
      Rules.mak

+ 5 - 5
Rules.mak

@@ -1,7 +1,7 @@
 # Rules.make for uClibc
 #
 # Copyright (C) 2000 by Lineo, inc.
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
@@ -61,11 +61,7 @@ LIBC := libc
 SHARED_MAJORNAME := $(LIBC).so.$(MAJOR_VERSION)
 UCLIBC_LDSO := ld-uClibc.so.$(MAJOR_VERSION)
 NONSHARED_LIBNAME := uclibc_nonshared.a
-ifeq ($(HAVE_SHARED),y)
 libc := $(top_builddir)lib/$(SHARED_MAJORNAME)
-else
-libc :=
-endif
 interp := $(top_builddir)lib/interp.os
 ldso := $(top_builddir)lib/$(UCLIBC_LDSO)
 headers_dep := $(top_builddir)include/bits/sysnum.h
@@ -84,6 +80,10 @@ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
 -include $(top_builddir).config
 endif
 
+ifneq ($(HAVE_SHARED),y)
+libc :=
+endif
+
 ifndef CROSS
 CROSS=$(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
 endif