mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
css + added strip option
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@124 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
parent
15651d6de5
commit
7cd4ea1b95
@ -48,6 +48,13 @@ config CONFIG_DEBUG
|
|||||||
|
|
||||||
Most people should answer N.
|
Most people should answer N.
|
||||||
|
|
||||||
|
config CONFIG_STRIP_UNWANTED_SECTIONS
|
||||||
|
depends on !CONFIG_PLATFORM_WIN32 && !CONFIG_DEBUG
|
||||||
|
bool "Strip unwanted sections from elf binaries"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Strip unwanted sections from the resulting binaries
|
||||||
|
|
||||||
menu "Microsoft Compiler Options"
|
menu "Microsoft Compiler Options"
|
||||||
depends on CONFIG_PLATFORM_WIN32
|
depends on CONFIG_PLATFORM_WIN32
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ LDSHARED = -shared
|
|||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
ifndef CONFIG_PLATFORM_CYGWIN
|
ifndef CONFIG_PLATFORM_CYGWIN
|
||||||
CFLAGS += -fPIC
|
# CFLAGS += -fPIC
|
||||||
|
|
||||||
# Cygwin
|
# Cygwin
|
||||||
else
|
else
|
||||||
|
@ -84,11 +84,9 @@ ifndef CONFIG_PLATFORM_WIN32
|
|||||||
|
|
||||||
$(TARGET): $(OBJ) $(AXTLS_HOME)/$(STAGE)/libaxtls.a
|
$(TARGET): $(OBJ) $(AXTLS_HOME)/$(STAGE)/libaxtls.a
|
||||||
$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
|
$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
|
||||||
ifndef CONFIG_DEBUG
|
ifdef CONFIG_STRIP_UNWANTED_SECTIONS
|
||||||
ifndef CONFIG_PLATFORM_SOLARIS
|
|
||||||
strip --remove-section=.comment $(TARGET)
|
strip --remove-section=.comment $(TARGET)
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
$(TARGET2): htpasswd.o $(AXTLS_HOME)/$(STAGE)/libaxtls.a
|
$(TARGET2): htpasswd.o $(AXTLS_HOME)/$(STAGE)/libaxtls.a
|
||||||
$(LD) $(LDFLAGS) -o $@ htpasswd.o $(LIBS)
|
$(LD) $(LDFLAGS) -o $@ htpasswd.o $(LIBS)
|
||||||
|
@ -1026,8 +1026,13 @@ static void send_error(struct connstruct *cn, int err)
|
|||||||
|
|
||||||
static const char *getmimetype(const char *name)
|
static const char *getmimetype(const char *name)
|
||||||
{
|
{
|
||||||
/* only bother with two types - let the browser/OS figure the rest out */
|
/* only bother with a few mime types - let the browser figure the rest out */
|
||||||
return strstr(name, ".htm") ? "text/html" : "application/octet-stream";
|
if (strstr(name, ".htm"))
|
||||||
|
return "text/html";
|
||||||
|
else if (strstr(name, ".css"))
|
||||||
|
return "text/css";
|
||||||
|
else
|
||||||
|
return "application/octet-stream";
|
||||||
}
|
}
|
||||||
|
|
||||||
static int special_write(struct connstruct *cn,
|
static int special_write(struct connstruct *cn,
|
||||||
|
@ -48,11 +48,9 @@ ifndef CONFIG_PLATFORM_WIN32
|
|||||||
|
|
||||||
$(TARGET): $(OBJ) $(LIBS)/libaxtls.a
|
$(TARGET): $(OBJ) $(LIBS)/libaxtls.a
|
||||||
$(LD) $(LDFLAGS) -o $@ $(OBJ) -L$(LIBS) -laxtls
|
$(LD) $(LDFLAGS) -o $@ $(OBJ) -L$(LIBS) -laxtls
|
||||||
ifndef CONFIG_DEBUG
|
ifdef CONFIG_STRIP_UNWANTED_SECTIONS
|
||||||
ifndef CONFIG_PLATFORM_SOLARIS
|
|
||||||
strip --remove-section=.comment $(TARGET)
|
strip --remove-section=.comment $(TARGET)
|
||||||
endif # SOLARIS
|
endif # use strip
|
||||||
endif # CONFIG_DEBUG
|
|
||||||
else # Win32
|
else # Win32
|
||||||
|
|
||||||
$(TARGET): $(OBJ)
|
$(TARGET): $(OBJ)
|
||||||
|
@ -42,7 +42,7 @@ endif
|
|||||||
|
|
||||||
# shared library major/minor numbers
|
# shared library major/minor numbers
|
||||||
LIBMAJOR=$(BASETARGET).1
|
LIBMAJOR=$(BASETARGET).1
|
||||||
LIBMINOR=$(BASETARGET).1.1
|
LIBMINOR=$(BASETARGET).1.2
|
||||||
else
|
else
|
||||||
TARGET1=$(AXTLS_HOME)/axtls.lib
|
TARGET1=$(AXTLS_HOME)/axtls.lib
|
||||||
TARGET2=$(AXTLS_HOME)/$(STAGE)/axtls.dll
|
TARGET2=$(AXTLS_HOME)/$(STAGE)/axtls.dll
|
||||||
|
@ -1735,7 +1735,7 @@ static void do_header_issue(void)
|
|||||||
static int header_issue(void)
|
static int header_issue(void)
|
||||||
{
|
{
|
||||||
FILE *f = fopen("../ssl/test/header_issue.dat", "r");
|
FILE *f = fopen("../ssl/test/header_issue.dat", "r");
|
||||||
int server_fd, client_fd, ret = 1;
|
int server_fd = -1, client_fd = -1, ret = 1;
|
||||||
uint8_t buf[2048];
|
uint8_t buf[2048];
|
||||||
int size = 0;
|
int size = 0;
|
||||||
struct sockaddr_in client_addr;
|
struct sockaddr_in client_addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user