# HG changeset patch # User Daniel Poelzleithner # Date 1284511386 -7200 # Node ID 1da1078a87b142729944bd7e66a99599b46f57ca # Parent 9ef0c71fb8272c1ac1a0c98823b6bffa19651265 fix crash on eglibc compiling without _GNU_SOURCE causes extos to crash on crypt as the return pointer is invalid. diff -r 9ef0c71fb827 -r 1da1078a87b1 Makefile.options --- a/Makefile.options Thu Jul 08 20:24:14 2010 +0200 +++ b/Makefile.options Wed Sep 15 02:43:06 2010 +0200 @@ -8,7 +8,7 @@ SLIB_EXT = so # C compiler flags -CFLAGS = -O2 -Wall -I /usr/include -I /usr/local/include -I /usr/local/include/lua51 -I /usr/include/lua5.1 +CFLAGS = -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -I /usr/local/include/lua51 -I /usr/include/lua5.1 # additional C compiler flags for parts which depend on PostgreSQL CFLAGS_PGSQL = -I /usr/include/postgresql -I /usr/include/postgresql/server -I /usr/local/include/postgresql -I /usr/local/include/postgresql/server