Commit b8a7bee3 authored by Jan Koester's avatar Jan Koester
Browse files

works without stdlib

parent ef4d0cfc
Loading
Loading
Loading
Loading
+3 −2
Changes for CMakeLists.txt: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,9 +11,10 @@ set(Upstream_VERSION 1.0.0)

set(CMAKE_CXX_FLAGS 
    "-fPIC\
    ${CMAKE_CXX_FLAGS} \
    -Wall\
    -nodefaultlibs"
    -nodefaultlibs\
    -nostdlib\
    "
)

configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+4 −0
Changes for src/html.cpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define HTMLCOMMENT 2
#define HTMLHEADER 3

extern "C" {
    void *__dso_handle=&__dso_handle;
}

libhtmlpp::HtmlString::HtmlString(){
    _InitString();
    _HtmlHeader=nullptr;