problem with C++ compiling caused by build.mak

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
aeolusc
Posts: 18
Joined: Sat Oct 14, 2006 12:17 pm

problem with C++ compiling caused by build.mak

Post by aeolusc »

original code:

Code: Select all

CFLAGS   := $(addprefix -I,$(INCDIR)) $(CFLAGS)
CXXFLAGS := $(CFLAGS) $(CXXFLAGS)
ASFLAGS  := $(CFLAGS) $(ASFLAGS)

ifeq ($(PSP_FW_VERSION),)
PSP_FW_VERSION=150
endif

CFLAGS += -D_PSP_FW_VERSION=$(PSP_FW_VERSION)
as FW definition sets after CFLAGS copied to CXXFLAGS, while running psp-g++ to compile cpp files, the _PSP_FW_VERSION leaves undefined.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Fixed in rev 2325.
I dunno why we copy CFLAGS to CXXFLAGS anyway, but I didn't change that because it might break existing code.
Post Reply