Commits

Anonymous committed 954abe4

Allow building and linking on Ubuntu.

  • Participants
  • Parent commits c08138d
  • Tags rel_0_7_2012_0616

Comments (0)

Files changed (2)

 
 CFLAGS+=-Ilib
 
+LIBS=-ldl
+
 #CFLAGS+=-pg
 NOPROFILE=yes
 
 BINOBJS=driver/main.o
 
 $(BIN): $(BINOBJS) $(LIB)
-	$(CC) $(CFLAGS) $(BINOBJS) $(STATIC) -Llib -lbhuna -o $(BIN)
+	$(CC) $(CFLAGS) $(BINOBJS) $(STATIC) -Llib -lbhuna $(LIBS) -o $(BIN)
 			done = 1;
 			for (i = 0; i < 9 && op[level][i][0] != '\0'; i++) {
 				if (tokeq(sc, op[level][i])) {
-					wcslcpy(the_op, sc->token, 256);
+					wcsncpy(the_op, sc->token, 256);
 					scan(sc);
 					done = 0;
 					r = parse_expr(sc, stab, level + 1, excl, cc);