summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-11-02 12:42:42 +0000
committerache <ache@FreeBSD.org>1995-11-02 12:42:42 +0000
commit698e939e43ce914201ec895fda34ec3a85767c4b (patch)
tree84dfa53590ba447404f7af64b9337028d4538ea2 /lib
parente6eb68645b908dbf6af5c6610f97ec41626bab20 (diff)
downloadFreeBSD-src-698e939e43ce914201ec895fda34ec3a85767c4b.zip
FreeBSD-src-698e939e43ce914201ec895fda34ec3a85767c4b.tar.gz
Remove my locale hack. Sigh.
Diffstat (limited to 'lib')
-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 201f5eb..4f665ca 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 6e361ca..ecafd5d 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));
}
OpenPOWER on IntegriCloud