fix for linux build

This commit is contained in:
Gogs 2020-03-09 01:00:48 -07:00
parent 35d901b19a
commit 7dafc584d2

View file

@ -1,5 +1,5 @@
APP=login
SF= ../common/timer.o ../common/packet_dump.o ../common/unix.o \
SF= ../common/Log.o ../common/timer.o ../common/packet_dump.o ../common/unix.o \
../common/Mutex.o ../common/MiscFunctions.o LoginDatabase.o LoginAccount.o \
../common/TCPConnection.o ../common/emu_opcodes.o \
client.o net.o PacketHeaders.o LWorld.o ../common/md5.o ../common/dbcore.o \
@ -12,7 +12,7 @@ CC=g++
LINKER=gcc
DFLAGS=-DEQ2 -DLOGIN
WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated
COPTS=$(WFLAGS) -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY $(DFLAGS) -I/usr/include/mysql -I/usr/mysql/include
COPTS=$(WFLAGS) -g -march=native -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY $(DFLAGS) -I/usr/include/mysql -I/usr/mysql/include
LINKOPTS=-rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/mysql/lib -lmysqlclient -ldl
all: $(APP)