Remove my locale hack. Sigh.

This commit is contained in:
Andrey A. Chernov 1995-11-02 12:42:42 +00:00
parent 43732dbeda
commit 3e912c9dee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12009
2 changed files with 3 additions and 14 deletions

View File

@ -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

View File

@ -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));
}