Changeset 7ab6fc2 in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2011-04-09T19:15:26Z (14 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
40ef3ed
Parents:
2e08dce
Message:

setting POSIX_COMPAT=1 in the makefile now makes compat headers preferred and links with libcompat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r2e08dce r7ab6fc2  
    154154JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    155155
     156ifeq ($(POSIX_COMPAT),1)
     157        CFLAGS = -I$(LIBCOMPAT_PREFIX)
     158        LIBS += $(LIBCOMPAT_PREFIX)/libcompat.a
     159endif
     160
    156161ifeq ($(COMPILER),gcc_cross)
    157         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     162        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    158163        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    159164endif
    160165
    161166ifeq ($(COMPILER),gcc_native)
    162         CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     167        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    163168        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    164169endif
    165170
    166171ifeq ($(COMPILER),icc)
    167         CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     172        CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    168173        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    169174endif
    170175
    171176ifeq ($(COMPILER),clang)
    172         CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     177        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    173178        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    174179endif
Note: See TracChangeset for help on using the changeset viewer.