aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-11-02 12:42:42 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-11-02 12:42:42 +0000
commit3e912c9dee6acfb73d5143a9ad086cc195f11817 (patch)
tree84dfa53590ba447404f7af64b9337028d4538ea2
parent43732dbedaf0e56f51cea3cd5d93b65d61a1a0a9 (diff)
Notes
-rw-r--r--lib/csu/i386/Makefile4
-rw-r--r--lib/csu/i386/crt0.c13
2 files changed, 3 insertions, 14 deletions
diff --git a/lib/csu/i386/Makefile b/lib/csu/i386/Makefile
index 201f5eb78a80..4f665ca13834 100644
--- a/lib/csu/i386/Makefile
+++ b/lib/csu/i386/Makefile
@@ -1,7 +1,7 @@
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
-# $Id: Makefile,v 1.21 1995/10/22 18:36:47 bde Exp $
+# $Id: Makefile,v 1.22 1995/10/29 09:49:18 phk Exp $
-CFLAGS+= -DUGLY_LOCALE_HACK -DLIBC_SCCS -fno-omit-frame-pointer
+CFLAGS+= -DLIBC_SCCS -fno-omit-frame-pointer
OBJS= crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o
CLEANFILES+= a.out
MAN3+= dlopen.3
diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c
index 6e361cab6907..ecafd5d7457b 100644
--- a/lib/csu/i386/crt0.c
+++ b/lib/csu/i386/crt0.c
@@ -27,13 +27,10 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: crt0.c,v 1.18 1995/09/27 23:13:33 nate Exp $
+ * $Id: crt0.c,v 1.20 1995/10/29 09:49:21 phk Exp $
*/
#include <sys/param.h>
-#ifdef UGLY_LOCALE_HACK
-#include <locale.h>
-#endif
#include <stdlib.h>
#ifdef DYNAMIC
@@ -89,9 +86,6 @@ static struct ld_entry *ld_entry;
static void __do_dynamic_link ();
#endif /* DYNAMIC */
-#ifdef UGLY_LOCALE_HACK
-extern void _startup_setlocale __P((int, const char *));
-#endif
int _callmain();
int errno;
static char empty[1];
@@ -187,11 +181,6 @@ asm("eprol:");
monstartup(&eprol, &etext);
#endif /* MCRT0 */
-#ifdef UGLY_LOCALE_HACK
- if (getenv("ENABLE_STARTUP_LOCALE") != NULL)
- _startup_setlocale(LC_ALL, "");
-#endif /* UGLY_LOCALE_HACK */
-
asm ("__callmain:"); /* Defined for the benefit of debuggers */
exit(main(kfp->kargc, argv, environ));
}